mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
e424eaf052
Add a lowlevel_error_handler, so we can customize the default error message. example: ``` lowlevel_error_handler do [302, {'Content-Type' => 'text', 'Location' => 'foo.html'}, ['302 found']] end ``` [fix #458]
7 lines
112 B
Ruby
7 lines
112 B
Ruby
app do |env|
|
|
[200, {}, ["embedded app"]]
|
|
end
|
|
|
|
lowlevel_error_handler do |err|
|
|
[200, {}, ["error page"]]
|
|
end
|