diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-20 14:39:02 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-07 15:37:44 +1000 |
commit | f32dc149bda3093d94bf7ec85c46bc27995b6ce3 (patch) | |
tree | 1dcdb971e274303d2cc332d06984153b8e0fa16f | |
parent | bda0f09c809dc6d989b86ef27d5fe6b08c564e8b (diff) | |
download | gitlab-shell-f32dc149bda3093d94bf7ec85c46bc27995b6ce3.tar.gz |
New HTTPCodes module
-rw-r--r-- | lib/http_codes.rb | 3 |
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 |