We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9e975 commit 52b4089Copy full SHA for 52b4089
quick_tour/the_controller.rst
@@ -161,11 +161,7 @@ exception::
161
}
162
163
The ``NotFoundHttpException`` will return a 404 HTTP response back to the
164
-browser. Similarly, ``ForbiddenHttpException`` returns a 403 error and
165
-``UnauthorizedHttpException`` a 401 one. For any other HTTP error code, you can
166
-use the base ``HttpException`` and pass the HTTP error as the exception code::
167
-
168
- throw new HttpException('Unauthorized access.', 401);
+browser.
169
170
.. index::
171
single: Controller; Redirect
0 commit comments