class JSONAPI::Utils::Exceptions::InternalServerError
Public Instance Methods
code()
click to toggle source
HTTP status code
@return [String]
@api public
# File lib/jsonapi/utils/exceptions/internal_server_error.rb, line 10 def code '500' end
errors()
click to toggle source
Decorate errors for 500 responses.
@return [Array]
@api public
# File lib/jsonapi/utils/exceptions/internal_server_error.rb, line 19 def errors [JSONAPI::Error.new( code: code, status: :internal_server_error, title: 'Internal Server Error', detail: 'An internal error ocurred while processing the request.' )] end