Symfony2 error 500 instead of 404 at production

前端 未结 11 1203
野性不改
野性不改 2020-12-06 04:49

In my Symfony2 project I\'m getting at development mode correct 404 Exception screen. But I\'m getting blank screen with HTTP status code 500 instead of 404 at production mo

11条回答
  •  借酒劲吻你
    2020-12-06 05:09

    In my case (symfony 2.3) I was getting a 200 status code, so the error pages didn't load. That's how I solved it:

    https://groups.google.com/d/msg/Symfony2/zNWNmQIq3nk/lVs4uC7QMIcJ

提交回复
热议问题