From 2b40833fa846f938c07b1f228b931a9dc7d708af Mon Sep 17 00:00:00 2001 From: Zenedith Date: Tue, 4 Aug 2015 22:03:18 +0200 Subject: [PATCH] Added support for http error 429: 'Too Many Requests' --- src/lib/errors.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/errors.js b/src/lib/errors.js index 7dfa0ab23..db6b40c24 100644 --- a/src/lib/errors.js +++ b/src/lib/errors.js @@ -123,6 +123,12 @@ var statusCodes = { */ 412: 'Precondition Failed', + /** + * Too Many Requests + * @param {String} [msg] - An error message that will probably end up in a log. + */ + 429: 'Too Many Requests', + /** * Conflict * @param {String} [msg] - An error message that will probably end up in a log.