Skip to content

How to create an Error for any StatusCode #2980

Answered by robjtede
jayvdb asked this question in Q&A

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

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

You must be logged in to vote
4 replies
@robjtede

@bublikOff

@robjtede

@bublikOff

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