Class: Response::Status
- Inherits:
-
Object
- Object
- Response::Status
- Includes:
- Adamantium
- Defined in:
- lib/response/status.rb
Overview
HTTP response status code with text
Constant Summary collapse
- OK =
new(200, 'OK')
- CREATED =
new(201, 'Created')
- NOT_FOUND =
new(404, 'Not Found')
- NOT_MODIFIED =
new(304, 'Not Modified')
- FOUND =
new(302, 'Found')
- MOVED_PERMANENTLY =
new(301, 'Moved Permanently')
- BAD_REQUEST =
new(400, 'Bad Request')
- NOT_AUTHORIZED =
new(401, 'Not Authorized')
- FORBIDDEN =
new(403, 'Forbidden')
- INTERNAL_SERVER_ERROR =
new(500, 'Internal Server Error')
Instance Attribute Summary collapse
-
#code ⇒ Fixnum
readonly
private
Return status code.
Instance Attribute Details
#code ⇒ Fixnum (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return status code
25 26 27 |
# File 'lib/response/status.rb', line 25 def code @code end |