From c7d12662c39d3dfd2a7869a35219d2cc5d0fe2c7 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 24 May 2015 09:05:41 +0200 Subject: [PATCH] few tweaks to the error pages article --- cookbook/controller/error_pages.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/controller/error_pages.rst b/cookbook/controller/error_pages.rst index 6766abc5847..db3b5baa132 100644 --- a/cookbook/controller/error_pages.rst +++ b/cookbook/controller/error_pages.rst @@ -46,7 +46,7 @@ is used to render a Twig template to show the user. .. _cookbook-error-pages-by-status-code: -This controller uses the HTTP status code, request format and the following +This controller uses the HTTP status code, the request format and the following logic to determine the template filename: #. Look for a template for the given format and status code (like ``error404.json.twig`` @@ -79,7 +79,7 @@ A typical project that returns HTML and JSON pages, might look like this: ├─ error.html.twig # All other HTML errors (including 500) ├─ error404.json.twig ├─ error403.json.twig - ├─ error.json.twig # All other JSON errors (including 500) + └─ error.json.twig # All other JSON errors (including 500) Example 404 Error Template --------------------------