Link to home
Start Free TrialLog in
Avatar of abgconsulting
abgconsulting

asked on

handling exception error http

I am in a situation where when I get an HTTP 400 code from the server, it is a completely legal way of the server telling me what was wrong with my request (using a message in the HTTP response content) and i want to retrieve this message.

However, the .NET HttpWebRequest raises an exception when the status code is 400.

How do I handle this? For me a 400 is completely legal, and rather helpful. The HTTP content has some important information but the exception throws me off my path
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Could you please give more detailed information on your problem?
ASKER CERTIFIED SOLUTION
Avatar of Cong Minh Vo
Cong Minh Vo
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial