Module: Angus::StatusCodes
- Included in:
- Middleware::ExceptionHandler, Responses
- Defined in:
- lib/angus/status_codes.rb
Constant Summary collapse
- HTTP_STATUS_CODE_OK =
TODO remove HTTP_STATUS from all constants
200
- HTTP_STATUS_CODE_FORBIDDEN =
403
- HTTP_STATUS_CODE_NOT_FOUND =
404
- HTTP_STATUS_CODE_CONFLICT =
409
- HTTP_STATUS_CODE_UNPROCESSABLE_ENTITY =
422
- HTTP_STATUS_CODE_INTERNAL_SERVER_ERROR =
500
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/angus/status_codes.rb', line 14 def self.included(base) self.constants.each do |const| unless base.const_defined?(const) base.const_set(const, self.const_get(const)) end end end |