Skip to content

Commit 52b4089

Browse files
committed
updated doc with the latest changes
1 parent 8d9e975 commit 52b4089

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

quick_tour/the_controller.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,7 @@ exception::
161161
}
162162

163163
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);
164+
browser.
169165

170166
.. index::
171167
single: Controller; Redirect

0 commit comments

Comments
 (0)