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
-
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– Anand Sowmithiran2022-03-14 14:37:02 +00:00Commented Mar 14, 2022 at 14:37
-
1Does this answer your question? How do I get StatusCode from HttpRequestException?gunr2171– gunr21712022-03-14 14:39:14 +00:00Commented Mar 14, 2022 at 14:39
-
Please provide enough code so others can better understand or reproduce the problem.Community– Community Bot2022-03-15 09:32:43 +00:00Commented Mar 15, 2022 at 9:32
Add a comment
|