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
Asked
Active
Viewed 1,397 times
0
-
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. – Anand Sowmithiran Mar 14 '22 at 14:37
-
1Does this answer your question? [How do I get StatusCode from HttpRequestException?](https://stackoverflow.com/questions/22217619/how-do-i-get-statuscode-from-httprequestexception) – gunr2171 Mar 14 '22 at 14:39
-
Please provide enough code so others can better understand or reproduce the problem. – Community Mar 15 '22 at 09:32