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

1 Answer 1

1

Check this response.

RestResponse response = client.Execute(request);
HttpStatusCode statusCode = response.StatusCode;
int numericStatusCode = (int)statusCode;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.