File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
user_guide_src/source/general Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -197,16 +197,22 @@ HTTP Status Code and Error Views
197197================================
198198
199199The exception handler displays the error view corresponding to the HTTP status
200- code, if it exists.
200+ code, if one exists.
201201
202202For example, ``PageNotFoundException `` implements the ``HTTPExceptionInterface ``,
203203so its exception code ``404 `` will be the HTTP status code. Therefore if it is
204204thrown, the system will show the **error_404.php ** in the **app/Views/errors/html **
205205folder when it is a web request. If it is invoked via CLI, the system will show
206206the **error_404.php ** in the **app/Views/errors/cli ** folder.
207207
208- You should customize all of the error views in the **app/Views/error ** folder for
209- your site.
208+ If there is no view file corresponding to the HTTP status code, **production.php **
209+ or **error_exception.php ** will be displayed.
210+
211+ .. note :: If ``display_errors`` is on in the PHP INI configuration,
212+ **error_exception.php ** is selected and a detailed error report is displayed.
213+
214+ You should customize all of the error views in the **app/Views/errors/html ** folder
215+ for your site.
210216
211217You can also create error views for specific HTTP status code. For example, if
212218you want to create an error view for "400 Bad Request", add **error_400.php **.
You can’t perform that action at this time.
0 commit comments