Closed dteijo closed 2 years ago
Thanks @dteijo could you try with NuGet v4.2.2.5? https://www.nuget.org/packages/Watson/4.2.2.5
I made sure to set the status to 403 prior to closing. Please let me know if this does it.
It returns with status code 403 now. Thanks for your prompt response!
Thanks for bringing it up @dteijo and making the library better!
If client ip address is banned at access control the server sends a response with status code 200 (OK), but the request was not processed and the client didn't get what is expected with status code 200. I believe that a response with status code 403 (Forbidden) is appropriate in this case.
Consider this simple client (local address is denied in server access control).
It assumes that it can deserialize response since status code is 200, then response is valid json data. But raises an exception instead at deserealization: