From f9bd1de12dcd80b1123c9f0e8243bec642230692 Mon Sep 17 00:00:00 2001 From: David Worms Date: Mon, 1 Apr 2019 09:33:35 +0200 Subject: [PATCH] 502: wrong key for name and message --- CHANGELOG.md | 4 ++++ lib/index.js | 4 ++-- src/index.litcoffee | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac64852..cada65a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog: HTTP Status +## Trunk + +* 502: wrong key for name and message + ## Version 1.3.1 * ts: define properties as readonly diff --git a/lib/index.js b/lib/index.js index 6c5eadd..1c41357 100644 --- a/lib/index.js +++ b/lib/index.js @@ -292,8 +292,8 @@ module.exports = { NOT_IMPLEMENTED: 501, // 502 - The server was acting as a gateway or proxy and received an invalid response from the upstream server. 502: 'Bad Gateway', - '_NAME': 'BAD_GATEWAY', - '_MESSAGE': 'The server was acting as a gateway or proxy and received an invalid response from the upstream server.', + '502_NAME': 'BAD_GATEWAY', + '502_MESSAGE': 'The server was acting as a gateway or proxy and received an invalid response from the upstream server.', BAD_GATEWAY: 502, // 503 - The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state. 503: 'Service Unavailable', diff --git a/src/index.litcoffee b/src/index.litcoffee index 51a6254..5b1fd53 100644 --- a/src/index.litcoffee +++ b/src/index.litcoffee @@ -400,8 +400,8 @@ The server failed to fulfill an apparently valid request. 502 - The server was acting as a gateway or proxy and received an invalid response from the upstream server. 502: 'Bad Gateway' - '_NAME': 'BAD_GATEWAY' - '_MESSAGE': 'The server was acting as a gateway or proxy and received an invalid response from the upstream server.' + '502_NAME': 'BAD_GATEWAY' + '502_MESSAGE': 'The server was acting as a gateway or proxy and received an invalid response from the upstream server.' BAD_GATEWAY: 502 503 - The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.