From 915c0d20ae96824cbe0ebc0597e605b0231296d4 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Mon, 5 Oct 2020 22:32:49 +0800 Subject: [PATCH] Add status codes --- backend/sub-store.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/sub-store.js b/backend/sub-store.js index e16a562..2c8a04f 100644 --- a/backend/sub-store.js +++ b/backend/sub-store.js @@ -2978,6 +2978,9 @@ function express(port = 3000) { const STATUS_CODE_MAP = { 200: "HTTP/1.1 200 OK", 201: "HTTP/1.1 201 Created", + 302: "HTTP/1.1 302 Found", + 307: "HTTP/1.1 307 Temporary Redirect", + 308: "HTTP/1.1 308 Permanent Redirect", 404: "HTTP/1.1 404 Not Found", 500: "HTTP/1.1 500 Internal Server Error", };