From 88abefb89687a2ded32675ab7f0c9d357103b241 Mon Sep 17 00:00:00 2001 From: Jose C Date: Sat, 5 Oct 2013 15:42:48 +0100 Subject: [PATCH] Support for HTTP Status Code: 429 - Too Many Requests Currently raising HTTP 429 results in HTTP 500 being sent. This patch resolves that issue. --- gluon/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gluon/http.py b/gluon/http.py index c10c6a63..49e900cc 100644 --- a/gluon/http.py +++ b/gluon/http.py @@ -44,6 +44,7 @@ defined_status = { 416: 'REQUESTED RANGE NOT SATISFIABLE', 417: 'EXPECTATION FAILED', 422: 'UNPROCESSABLE ENTITY', + 429: 'TOO MANY REQUESTS', 451: 'UNAVAILABLE FOR LEGAL REASONS', # http://www.451unavailable.org/ 500: 'INTERNAL SERVER ERROR', 501: 'NOT IMPLEMENTED',