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)