Module: DoctorSwagger::Errors
- Defined in:
- lib/doctor_swagger/errors.rb
Class Method Summary collapse
Class Method Details
.access_denied ⇒ Object
11 12 13 |
# File 'lib/doctor_swagger/errors.rb', line 11 def self.access_denied ErrorResponse.new(401, 'access_denied') end |
.resource_not_found ⇒ Object
7 8 9 |
# File 'lib/doctor_swagger/errors.rb', line 7 def self.resource_not_found ErrorResponse.new(404, 'resource_not_found') end |
.standard_errors ⇒ Object
3 4 5 |
# File 'lib/doctor_swagger/errors.rb', line 3 def self.standard_errors [resource_not_found, access_denied] end |