X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/943e8bc4af0c11b0ace3811199e3b0844c4c3fbc..4fd0861aa9d51262d5afcdc40ea48e7ce7ec7aaa:/philo/contrib/penfield/middleware.py?ds=sidebyside diff --git a/philo/contrib/penfield/middleware.py b/philo/contrib/penfield/middleware.py index 8bcff40..a0cd649 100644 --- a/philo/contrib/penfield/middleware.py +++ b/philo/contrib/penfield/middleware.py @@ -5,8 +5,7 @@ from philo.contrib.penfield.exceptions import HttpNotAcceptable class HttpNotAcceptableMiddleware(object): - """Middleware to catch HttpNotAcceptable errors and return an Http406 response. - See RFC 2616.""" + """Middleware to catch :exc:`~philo.contrib.penfield.exceptions.HttpNotAcceptable` and return an :class:`HttpResponse` with a 406 response code. See :rfc:`2616`.""" def process_exception(self, request, exception): if isinstance(exception, HttpNotAcceptable): return HttpResponse(status=406)