At the moment I am developing an API which returns a token with OAuth2, at the moment I try to enter everything well, now I would like to know how to obtain the 401 code to send it in the header as a response when the token time expires
How to respond in header with 401 API C # code
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Viswanatha SwamyRank #43 · 33.4K reputationPosted Sep 3, 2020, 5:00 PM EDT