CodeIgniter Forums

Full Version: Error DB handling
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
just request: maybe codeigniter-4 have to make an error handling for error 403 like "$route['404_override']" to "$route['403_override']"
It depends.

403 can happen on webserver side, in which case request won't even make it to PHP / CodeIgniter.

If you want to use 403 resource yourself in your application, because CodeIgniter doesn't handle your app authentication, it wouldn't know if something is restricted or not, developer would need to build that in.

However, I assume you mean php/general config errors?

Here's a little explanation how to handle custom error exceptions, https://bcit-ci.github.io/CodeIgniter4/g...exceptions