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
{{ message }}
Repository navigation
Change the status code of a response to eg 404 without exception_handlers
#669
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
It's not clear to me from the docs how to change the status code of a response without error handlers.
For instance, in handlers.html we have this example:
Let's suppose we want to extend this so it returns a 404 based on (for example) some kind of dynamic lookup, eg:
What's the right way to do that?
All reactions