summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/httpexceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py
index 8c49889be..fef4fe47e 100644
--- a/pyramid/httpexceptions.py
+++ b/pyramid/httpexceptions.py
@@ -987,7 +987,7 @@ class HTTPInsufficientStorage(HTTPServerError):
def exception_response(status_code, **kw):
"""Creates an HTTP exception based on a status code. Example::
- raise responsecode(404) # raises an HTTPNotFound exception.
+ raise exception_response(404) # raises an HTTPNotFound exception.
The values passed as ``kw`` are provided to the exception's constructor.
"""