Exception: JSONAPI::Exceptions::HasManySetReplacementForbidden

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



62
63
64
65
66
67
# File 'lib/jsonapi/exceptions.rb', line 62

def errors
  [JSONAPI::Error.new(code: JSONAPI::FORBIDDEN,
                      status: :forbidden,
                      title: 'Complete replacement forbidden',
                      detail: 'Complete replacement forbidden for this association')]
end