summaryrefslogtreecommitdiff
path: root/lib/http_codes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http_codes.rb')
-rw-r--r--lib/http_codes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http_codes.rb b/lib/http_codes.rb
index 24b3b5a..5f79095 100644
--- a/lib/http_codes.rb
+++ b/lib/http_codes.rb
@@ -1,5 +1,8 @@
module HTTPCodes
HTTP_SUCCESS = '200'.freeze
+ HTTP_CREATED = '201'.freeze
+ HTTP_MULTIPLE_CHOICES = '300'.freeze
HTTP_UNAUTHORIZED = '401'.freeze
HTTP_NOT_FOUND = '404'.freeze
+ HTTP_SUCCESS_CODES = [HTTP_SUCCESS, HTTP_CREATED, HTTP_MULTIPLE_CHOICES].freeze
end