Class: JSONAPI::Utils::Exceptions::BadRequest

Inherits:
Exceptions::Error
  • Object
show all
Defined in:
lib/jsonapi/utils/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#codeObject



5
# File 'lib/jsonapi/utils/exceptions.rb', line 5

def code; 400 end

#errorsObject



7
8
9
10
11
12
# File 'lib/jsonapi/utils/exceptions.rb', line 7

def errors
  [JSONAPI::Error.new(code: 400,
                      status: :bad_request,
                      title: 'Bad Request',
                      detail: 'This request is not supported.')]
end