Module: DoctorSwagger::Errors

Defined in:
lib/doctor_swagger/errors.rb

Class Method Summary collapse

Class Method Details

.access_deniedObject


11
12
13
# File 'lib/doctor_swagger/errors.rb', line 11

def self.access_denied
  ErrorResponse.new(401, 'access_denied')
end

.resource_not_foundObject


7
8
9
# File 'lib/doctor_swagger/errors.rb', line 7

def self.resource_not_found
  ErrorResponse.new(404, 'resource_not_found')
end

.standard_errorsObject


3
4
5
# File 'lib/doctor_swagger/errors.rb', line 3

def self.standard_errors
  [resource_not_found, access_denied]
end