Method: JSONAPI::Exceptions::ParameterNotAllowed#errors
- Defined in:
- lib/jsonapi/exceptions.rb
#errors ⇒ Object
398 399 400 401 402 403 404 405 |
# File 'lib/jsonapi/exceptions.rb', line 398 def errors [create_error_object(code: JSONAPI::PARAM_NOT_ALLOWED, status: :bad_request, title: I18n.translate('jsonapi-resources.exceptions.parameter_not_allowed.title', default: 'Param not allowed'), detail: I18n.translate('jsonapi-resources.exceptions.parameters_not_allowed.detail', default: "#{param} is not allowed.", param: param))] end |