Pode
Pode copied to clipboard
408 RequestTimeout not rendering any error page
Not sure if I'm just missing something here but I am trying to set a custom error page for when it times out but right now its just returning a blank page with or without the custom page set up.
I am on Pode version - 2.10.1
I have a 408.json file inside of /errors:
{"Response": "Operation took too long"}
server.psd1 has:
Web = @{ ErrorPages = @{ ShowExceptions = $true Default = "application/json" StrictContentTyping = $true } }
when i force a timeout by setting the request to 5 second timeout i would expect it to return a 408 error (which it does) and then render the error page (which it does not). I have tried this with a 404 error by typing in a route that does not exist and it does automatically return the custom 404 error. Do 408 errors not work this same way or am i just doing something wrong?