Before this was "400 Bad Request" and thus it didn't reflect
the reality.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
try:
ctx.handler_fn = getattr(ctx.handler, method)
except AttributeError:
- raise http.HttpBadRequest("Method %s is unsupported for path %s" %
- (method, req.request_path))
+ raise http.HttpNotImplemented("Method %s is unsupported for path %s" %
+ (method, req.request_path))
ctx.handler_access = getattr(ctx.handler, "%s_ACCESS" % method, None)