0

using middleware to handle the exception .net Core with this link: How to return the same status code from a second API call got stuck on how to get status code from Exception. Specifically this: ConvertExceptionToHttpStatusCode

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

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.