Created
December 10, 2015 22:00
-
-
Save evanleck/8d997ae0b4d0ecfcd85c to your computer and use it in GitHub Desktop.
Better Low-Level Error Handling with Puma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inside of your Puma configuration file. | |
lowlevel_error_handler do | |
[500, { 'Content-Type' => 'text/html' }, File.open('50x.html')] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment