From 44b1cce24f5e96c6056f542dea53768996c442e3 Mon Sep 17 00:00:00 2001 From: lukasolson Date: Mon, 27 Apr 2015 08:47:10 -0700 Subject: [PATCH] Add 502 status code --- src/lib/errors.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/errors.js b/src/lib/errors.js index dda9b5311..b3f82c5d2 100644 --- a/src/lib/errors.js +++ b/src/lib/errors.js @@ -91,6 +91,12 @@ var statusCodes = { */ 503: 'Service Unavailable', + /** + * BadGateway + * @param {String} [msg] - An error message that will probably end up in a log. + */ + 502: 'Bad Gateway', + /** * InternalServerError * @param {String} [msg] - An error message that will probably end up in a log.