Class: JSONAPI::Utils::Exceptions::BadRequest
- Inherits:
-
Exceptions::Error
- Object
- Exceptions::Error
- JSONAPI::Utils::Exceptions::BadRequest
- Defined in:
- lib/jsonapi/utils/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
26 27 28 |
# File 'lib/jsonapi/utils/exceptions.rb', line 26 def code '400' end |
#errors ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/jsonapi/utils/exceptions.rb', line 30 def errors [JSONAPI::Error.new( code: code, status: :bad_request, title: 'Bad Request', detail: 'This request is not supported.' )] end |