'If `request.method` does not correspond to a handler method,
determine what kind of exception to raise.'

def http_method_not_allowed(self, request, *args, **kwargs):

    raise exceptions.MethodNotAllowed(request.method)
