Commit f4aa93ab authored by Tristan Cavelier's avatar Tristan Cavelier

Status code 304 added to globals

parent 2da69d5b
...@@ -38,6 +38,7 @@ constants.http_status_text = { ...@@ -38,6 +38,7 @@ constants.http_status_text = {
"204": "No Content", "204": "No Content",
"205": "Reset Content", "205": "Reset Content",
"206": "Partial Content", "206": "Partial Content",
"304": "Not Modified",
"400": "Bad Request", "400": "Bad Request",
"401": "Unauthorized", "401": "Unauthorized",
"402": "Payment Required", "402": "Payment Required",
...@@ -71,6 +72,7 @@ constants.http_status_text = { ...@@ -71,6 +72,7 @@ constants.http_status_text = {
"No Content": "No Content", "No Content": "No Content",
"Reset Content": "Reset Content", "Reset Content": "Reset Content",
"Partial Content": "Partial Content", "Partial Content": "Partial Content",
"Not Modified": "Not Modified",
"Bad Request": "Bad Request", "Bad Request": "Bad Request",
"Unauthorized": "Unauthorized", "Unauthorized": "Unauthorized",
"Payment Required": "Payment Required", "Payment Required": "Payment Required",
...@@ -103,6 +105,7 @@ constants.http_status_text = { ...@@ -103,6 +105,7 @@ constants.http_status_text = {
"no_content": "No Content", "no_content": "No Content",
"reset_content": "Reset Content", "reset_content": "Reset Content",
"partial_content": "Partial Content", "partial_content": "Partial Content",
"not_modified": "Not Modified",
"bad_request": "Bad Request", "bad_request": "Bad Request",
"unauthorized": "Unauthorized", "unauthorized": "Unauthorized",
"payment_required": "Payment Required", "payment_required": "Payment Required",
...@@ -147,6 +150,7 @@ constants.http_status = { ...@@ -147,6 +150,7 @@ constants.http_status = {
"204": 204, "204": 204,
"205": 205, "205": 205,
"206": 206, "206": 206,
"304": 304,
"400": 400, "400": 400,
"401": 401, "401": 401,
"402": 402, "402": 402,
...@@ -180,6 +184,7 @@ constants.http_status = { ...@@ -180,6 +184,7 @@ constants.http_status = {
"No Content": 204, "No Content": 204,
"Reset Content": 205, "Reset Content": 205,
"Partial Content": 206, "Partial Content": 206,
"Not Modified": 304,
"Bad Request": 400, "Bad Request": 400,
"Unauthorized": 401, "Unauthorized": 401,
"Payment Required": 402, "Payment Required": 402,
...@@ -212,6 +217,7 @@ constants.http_status = { ...@@ -212,6 +217,7 @@ constants.http_status = {
"no_content": 204, "no_content": 204,
"reset_content": 205, "reset_content": 205,
"partial_content": 206, "partial_content": 206,
"not_modified": 304,
"bad_request": 400, "bad_request": 400,
"unauthorized": 401, "unauthorized": 401,
"payment_required": 402, "payment_required": 402,
...@@ -256,6 +262,7 @@ constants.http_action = { ...@@ -256,6 +262,7 @@ constants.http_action = {
"204": "success", "204": "success",
"205": "success", "205": "success",
"206": "success", "206": "success",
"304": "success",
"400": "error", "400": "error",
"401": "error", "401": "error",
"402": "error", "402": "error",
...@@ -289,6 +296,7 @@ constants.http_action = { ...@@ -289,6 +296,7 @@ constants.http_action = {
"No Content": "success", "No Content": "success",
"Reset Content": "success", "Reset Content": "success",
"Partial Content": "success", "Partial Content": "success",
"Not Modified": "success",
"Bad Request": "error", "Bad Request": "error",
"Unauthorized": "error", "Unauthorized": "error",
"Payment Required": "error", "Payment Required": "error",
...@@ -321,6 +329,7 @@ constants.http_action = { ...@@ -321,6 +329,7 @@ constants.http_action = {
"no_content": "success", "no_content": "success",
"reset_content": "success", "reset_content": "success",
"partial_content": "success", "partial_content": "success",
"not_modified": "success",
"bad_request": "error", "bad_request": "error",
"unauthorized": "error", "unauthorized": "error",
"payment_required": "error", "payment_required": "error",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment