ozzo-routing icon indicating copy to clipboard operation
ozzo-routing copied to clipboard

Serving Static Html file for not found endpoints.

Open tonespy opened this issue 6 years ago • 0 comments

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

tonespy avatar Jun 03 '18 10:06 tonespy