Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Returning an HTTP 500 error without differentiating error levels is a really BAD idea #59

Open
diegorivera opened this issue Mar 13, 2024 · 0 comments

Comments

@diegorivera
Copy link

http_response_code(500);

Basically even DEPRECATED errors will generate an HTTP 500 response, even spitting out perfect html and with the site working. 500 shoud be sent only for FATAL errors (E_ERROR). It is a bigger problem with AJAX requests, wich usually rely on HTTP Response codes to interpret the server's response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant