-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when grav fails, HTTP error should be returned instead of 200 #1291
Comments
Whenever there's an error, i'm seeing a 500 error returned as expected. Can you please provide an example of how to get an error with a 200 response? |
I added the So, not a Grav issue, but an environment setting. (see https://bugs.php.net/bug.php?id=50921) After disabling errors: |
OK, here is how to reproduce the problem: Instead of displaying error 500, Grav displays a normal 200 with error page that some folders are not writable. |
Oh ok that's the Problems plugin output. It can be fixed by adding a Can you check if this solves your problem? |
@flaviocopes yes it works as expected now! The health checker now reports a problem with the server in this case :) Thank you! |
When grav fails due for example to file access error, error HTTP 200 is currently returned.
This behavior confuses health check system to think everything is alright :)
Instead an HTTP 5xx error should be returned instead, so the health check systems can trigger
The text was updated successfully, but these errors were encountered: