From 8d9700cd33900cea6f1e3dbc641e2af46ecd9d6b Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Wed, 1 Feb 2012 10:47:19 -0800 Subject: [PATCH] Improvements to copy on 429 page. --- r2/r2/controllers/error.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/r2/r2/controllers/error.py b/r2/r2/controllers/error.py index a2bb4a875..00bb845f0 100644 --- a/r2/r2/controllers/error.py +++ b/r2/r2/controllers/error.py @@ -77,7 +77,16 @@ toofast = \ Too Many Requests @@ -89,10 +98,11 @@ toofast = \ to discuss easier ways to get the data you want, please contact us any of the following ways.

+

when contacting us, please include your ip address which is: %(ip)s

as a reminder, we recommend that clients make no more than one request every two seconds to avoid being blocked like this.

@@ -167,7 +177,8 @@ class ErrorController(RedditController): def send429(self): c.response.status_code = 429 - return toofast + return toofast % dict(ip=request.ip, + logo_url=static(g.default_header_url)) def send503(self): c.response.status_code = 503