From fb221ac0dbe92e881c67366ae68a3edfb6fd7bb3 Mon Sep 17 00:00:00 2001 From: Wannes Rombouts <wapiflapi@yahoo.fr> Date: Wed, 3 Jul 2013 16:19:00 +0200 Subject: [PATCH] Fixed typo in http error codes. --- src/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webapp.py b/src/webapp.py index 1c30b75..628d765 100644 --- a/src/webapp.py +++ b/src/webapp.py @@ -54,7 +54,7 @@ class BadRequest(web.webapi.HTTPError): """`400 Bad Request` error.""" def __init__(self, message="bad request"): self.message = message - status = '404 Bad Request' + status = '400 Bad Request' headers = {'Content-Type': 'text/html'} web.webapi.HTTPError.__init__(self, status, headers, message) -- GitLab