summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/http_codes.rb5
-rw-r--r--lib/http_helper.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/http_codes.rb b/lib/http_codes.rb
new file mode 100644
index 0000000..24b3b5a
--- /dev/null
+++ b/lib/http_codes.rb
@@ -0,0 +1,5 @@
+module HTTPCodes
+ HTTP_SUCCESS = '200'.freeze
+ HTTP_UNAUTHORIZED = '401'.freeze
+ HTTP_NOT_FOUND = '404'.freeze
+end
diff --git a/lib/http_helper.rb b/lib/http_helper.rb
index 62d0c51..1e75833 100644
--- a/lib/http_helper.rb
+++ b/lib/http_helper.rb
@@ -1,4 +1,8 @@
+require_relative 'http_codes'
+
module HTTPHelper
+ include HTTPCodes
+
READ_TIMEOUT = 300
protected