From 502fae2e0ab135c21f6a4d838fc481c25c193ab4 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 3 Apr 2012 15:20:05 -0400 Subject: [PATCH] pay me --- httpbin/helpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 3527138..0f04766 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -135,6 +135,12 @@ def status_code(code): 305: redirect, 307: redirect, 401: dict(headers={'WWW-Authenticate': 'Basic realm="Fake Realm"'}), + 402: dict( + data='Fuck you, payme!', + headers={ + 'x-more-info': 'http://vimeo.com/22053820' + } + ), 407: dict(headers={'Proxy-Authenticate': 'Basic realm="Fake Realm"'}), 418: dict( # I'm a teapot! data=ASCII_ART,