Welcome Guest, Not a member yet? Register   Sign In
Customizable 404 Error Pages for Specific Routes
#8

(This post was last modified: 08-23-2024, 02:09 AM by kenjis.)

In terms of 405 errors, I think there is room to add a feature that specifies a resource and the allowed HTTP methods.

If you define a resource (URI path) and the allowed HTTP methods, then CI4 should return 405 to requests for methods that are not allowed.
And the server must generate an Allow header in a 405 response with a list of methods that the target resource currently supports.
See https://developer.mozilla.org/en-US/docs...Status/405

However, the current router does not have the concept of “resources”, so it may not be easy to implement.
Reply


Messages In This Thread
RE: Customizable 404 Error Pages for Specific Routes - by kenjis - 08-23-2024, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB