Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • The mentioned SO answer did not give the code for the function ConvertExceptionToHttpStatusCode, if you add a comment there, that author of the answer could clarify. Ah, I see you are new to SO and don't have commenting privilege yet. Commented Mar 14, 2022 at 14:37
  • 1
    Does this answer your question? How do I get StatusCode from HttpRequestException? Commented Mar 14, 2022 at 14:39
  • Please provide enough code so others can better understand or reproduce the problem. Commented Mar 15, 2022 at 9:32