Hi,
Since no one replied to my thread in microsoft forum, I'm posting this question here.
I'm using WCF 3.5 REST with JSON output. If I send the below request body
{"persons": [{"fname":"John"}, {"fname":"sheena"}}
to my web API, my REST service throws "500 - Internal Server Error".
If you look at carefully, request is missing the ending square bracket & hence the error comes.
Now, I would like to know how to catch this error??? So, far I've no luck in catching this error at all. I need to give 400 Bad Request error instead. How do I do that?
Thanks!