You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any middleware or route logic throws an error currently, then a 200 response is returned. This issue is to change that so a 500 is returned instead, using status 500.
For middleware this can be done in the Invoke-PodeMiddleware function, within the catch of the try-catch. For routes this could be done within the catch of the try-catch in the WebServer - around line 156.
The text was updated successfully, but these errors were encountered:
If any middleware or route logic throws an error currently, then a 200 response is returned. This issue is to change that so a 500 is returned instead, using
status 500
.For middleware this can be done in the
Invoke-PodeMiddleware
function, within thecatch
of thetry-catch
. For routes this could be done within thecatch
of thetry-catch
in theWebServer
- around line 156.The text was updated successfully, but these errors were encountered: