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
By default Nexus handles all errors with a status 500 from what I can see. Is there a way to pass back an actual statusCode that should be used when crafting the http response? I see that nexus uses Express internally, but the abstraction doesn't seem to allow something like throwing an error with a status code on it.
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
-
By default Nexus handles all errors with a status 500 from what I can see. Is there a way to pass back an actual statusCode that should be used when crafting the http response? I see that nexus uses Express internally, but the abstraction doesn't seem to allow something like throwing an error with a status code on it.
See: graphql-nexus/plugin-auth0#10
Beta Was this translation helpful? Give feedback.
All reactions