try:
ctx.handler_fn = getattr(ctx.handler, method)
except AttributeError, err:
- raise http.HttpBadRequest()
+ raise http.HttpBadRequest("Method %s is unsupported for path %s" %
+ (method, req.request_path))
ctx.handler_access = getattr(ctx.handler, "%s_ACCESS" % method, None)