Module: Backframe::ActsAsAPI::Errors

Defined in:
lib/backframe/actioncontroller/acts_as_api/errors.rb

Instance Method Summary collapse

Instance Method Details

#resource_not_foundObject



14
15
16
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 14

def resource_not_found
  error_response(:resource_not_found, 404)
end

#route_not_foundObject



18
19
20
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 18

def route_not_found
  error_response(:route_not_found, 404)
end

#unauthenticated_requestObject



6
7
8
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 6

def unauthenticated_request
  error_response(:unauthenticated, 401)
end

#unauthorized_requestObject



10
11
12
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 10

def unauthorized_request
  error_response(:unauthorized, 403)
end