Error Handling
Class for the error handling are included inside the includes folder as error_handling.php.
use
use App\ErrorHandling;to include the ErrorHandling class.
View the 404 error
Section titled “View the 404 error”ErrorHandling::_404();for custom 404 error message
ErrorHandling::_404({error-message});View the 405 error
Section titled “View the 405 error”ErrorHandling::_405();for custom 405 error message
ErrorHandling::_405({error-message});View the 500 error
Section titled “View the 500 error”ErrorHandling::_500();for custom 500 error message
ErrorHandling::_500({error-message});