my answer is quite simple: Is there a way to catch server-errors (like Error 400, 401, 403, 404, 500...) automatically with PHP and generate custom Error-Pages.
For example, let's say I got a PHP-File with the page and it just inserts the Error-Code and the Error-Message.
Thanks in advance!
You may use custom exception handler function (set_exception_handler()) and error handler (set_error_handler()) for turn errors to Exception (example)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With