0

How to handle custom HTTP error codes in RestSharp, IRestResponse.HttpStatusCode is not allowing to handle 599 or other custom codes, is there any way to handle it? please help

We have a certain situation, where we are getting 599 in HttpStatusCode

Dev Doc
  • 170
  • 3
  • 12

1 Answers1

1

Check this response.

RestResponse response = client.Execute(request);
HttpStatusCode statusCode = response.StatusCode;
int numericStatusCode = (int)statusCode;
Ygalbel
  • 5,214
  • 1
  • 24
  • 32