#Not Found

1 articles

06 Handle Not Found Page

06 Handle Not Found Page

Understanding Not Found Handler

Apart from the Router being able to control panic, it can also have a handler for pages not found or what we often call pages that cannot be accessed. The Not Found handler is a handler that is executed when a client tries to make a request for a page or URL of our website that is not in our Router service. By default, if there is no route it will not be found, but the Router will continue the request to http.NotFound, but we can also change it to a specific router page by changing