I was going through the documentation and I saw the explanation given about error handling.
What I am trying to achieve is being able to return an html file in a situation where the endpoint is not provided. I wanted to just go ahead and add my function for 404/not found errors.
But, I was concerned about it interfering with situations where I return a 404 itself. E.g: When a user makes a request to get information about a user and the user isn't available.
Your response and suggestion would be greatly appreciated.
I was going through the documentation and I saw the explanation given about error handling.
What I am trying to achieve is being able to return an html file in a situation where the endpoint is not provided. I wanted to just go ahead and add my function for 404/not found errors.
But, I was concerned about it interfering with situations where I return a 404 itself. E.g: When a user makes a request to get information about a user and the user isn't available.
Your response and suggestion would be greatly appreciated.
Thanks