Class: Gors::DefaultErrorHandler

Inherits:
ErrorHelper show all
Defined in:
lib/gors.rb

Instance Method Summary collapse

Methods inherited from ErrorHelper

#call

Instance Method Details

#error_403Object



288
289
290
# File 'lib/gors.rb', line 288

def error_403
  "<h1>403 Forbidden</h1>"
end

#error_404Object



282
283
284
# File 'lib/gors.rb', line 282

def error_404
  "<h1>404 Not Found</h1>"
end

#error_500Object



285
286
287
# File 'lib/gors.rb', line 285

def error_500
  "<h1>500 Internal server error</h1>"
end