﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1646	[patch] HttpResponseNotAllowed to return '405's	Ian@…	Malcolm Tredinnick	"from RFC 2616: An origin server SHOULD return the status code 405 (Method Not Allowed) if the method is known by the origin server but not allowed for the requested resource.

{{{
Index: /magik/django/http/__init__.py
===================================================================
--- /magik/django/http/__init__.py      (revision 2704)
+++ /magik/django/http/__init__.py      (working copy)
@@ -265,6 +265,11 @@
         HttpResponse.__init__(self, *args, **kwargs)
         self.status_code = 403
 
+class HttpResponseNotAllowed(HttpResponse):
+    def __init__(self, *args, **kwargs):
+        HttpResponse.__init__(self, *args, **kwargs)
+        self.status_code = 405
+
 class HttpResponseGone(HttpResponse):
     def __init__(self, *args, **kwargs):
         HttpResponse.__init__(self, *args, **kwargs)

}}}

"	enhancement	closed	Core (Other)		normal	fixed			Unreviewed	1	0	0	0	0	0
