nginx: error pages are now respond as json if accept header request it.
As a consequence, we can rely on them to display a correct information on user pages through angularJS.
This commit is contained in:
parent
cf290732dc
commit
63a55a8a0b
12 changed files with 103 additions and 27 deletions
1
frontend/static/e404.json
Normal file
1
frontend/static/e404.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"errmsg": "La page à laquelle vous tentez d'accéder n'existe pas ou l'adresse que vous avez tapée est incorrecte."}
|
||||
Reference in a new issue