Skip to content

How to create an Error for any StatusCode #2980

Answered by robjtede
jayvdb asked this question in Q&A
Discussion options

You must be logged in to vote

Best thing to do is use InternalError.

ResponseError is designed to require some error context. So such an impl ResponseError for StatusCode is not acceptable.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jayvdb
Comment options

You must be logged in to vote
4 replies
@robjtede
Comment options

@bublikOff
Comment options

@robjtede
Comment options

@bublikOff
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants