From 08666f6d34f7a704a2a8ff4487a414e27f63f46c Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Sat, 31 Aug 2013 12:44:22 +0200 Subject: [PATCH] http constants added --- src/jio/core/globals.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/jio/core/globals.js b/src/jio/core/globals.js index 832ad1e..1906698 100644 --- a/src/jio/core/globals.js +++ b/src/jio/core/globals.js @@ -23,10 +23,13 @@ constants.dcmi_types = { // if (typeof dcmi_types[name] === 'string') { is a DCMI type } constants.http_status_text = { + "0": "Unknown", "550": "Internal JIO Error", "551": "Internal Storage Error", + "Unknown": "Unknown", "Internal JIO Error": "Internal JIO Error", "Internal Storage Error": "Internal Storage Error", + "unknown": "Unknown", "internal_jio_error": "Internal JIO Error", "internal_storage_error": "Internal Storage Error", @@ -125,10 +128,13 @@ constants.http_status_text = { }; constants.http_status = { + "0": 0, "550": 550, "551": 551, + "Unknown": 0, "Internal JIO Error": 550, "Internal Storage Error": 551, + "unknown": 0, "internal_jio_error": 550, "internal_storage_error": 551, @@ -227,10 +233,13 @@ constants.http_status = { }; constants.http_action = { + "0": "error", "550": "error", "551": "error", + "Unknown": "error", "Internal JIO Error": "error", "Internal Storage Error": "error", + "unknown": "error", "internal_jio_error": "error", "internal_storage_error": "error", -- 2.30.9