Hi
Unfortunately I am stuck with a Classic ASP application for which I am having to write a couple of small external facing APIs
Part of the brief is to return a 200 HTTP status when everything is fine and a 400 HTTP status when there is something wrong with the request. The pseudo code snippet below shows how I return a 400 status.
Response.Write "{""result"":""error"",""message"":""Insufficient data supplied.""}"
Response.Status = 400
Response.End
This works great on my development server which is running IIS 8.5 and returns the JSON message as expected. However, on the production server which is running IIS 10, all that is returned is "Bad Response".
Anyone know of any way to get the desire result on the IIS 10 server?
Regards