|
|
|
@ -212,10 +212,10 @@ module API |
|
|
|
|
e.error_response status: 401, message: representer.to_json, headers: warden.headers, log: false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
error_response ActiveRecord::RecordNotFound, ::API::Errors::NotFound.new |
|
|
|
|
error_response ActiveRecord::StaleObjectError, ::API::Errors::Conflict.new |
|
|
|
|
error_response ActiveRecord::RecordNotFound, ::API::Errors::NotFound |
|
|
|
|
error_response ActiveRecord::StaleObjectError, ::API::Errors::Conflict |
|
|
|
|
|
|
|
|
|
error_response MultiJson::ParseError, ::API::Errors::ParseError.new |
|
|
|
|
error_response MultiJson::ParseError, ::API::Errors::ParseError |
|
|
|
|
|
|
|
|
|
error_response ::API::Errors::Unauthenticated, headers: auth_headers, log: false |
|
|
|
|
error_response ::API::Errors::ErrorBase, rescue_subclasses: true, log: false |
|
|
|
|