module Roda::RodaPlugins::ErrorHandler::InstanceMethods

def _roda_handle_main_route

the error handler.
If an error occurs, set the response status to 500 and call
def _roda_handle_main_route
  begin
    res = super
  ensure
    _roda_after(res)
  end
rescue *opts[:error_handler_classes] => e
  _handle_error(e)
end