Cannot see response body in ie8 when response http status code is set to some error code(422)
- by Deewendra Shrestha
I am making a requset to a web service that sends custom error with proper HTTP header when I notice some validation error, this works fine in chrome and mozilla as things always do and then it broke in ie8 as it always does!
After checking the network activity, I see that ie8 is not able to get response body when HTTP code is other that 200(or at-least it seems so).
In groovy I am returning error like :
render(status: 422, contentType: 'TEXT', text: ((errors as JSON) as String))
Is there a way I could somehow get ie8 to read in the response body, or as an alternative I might be able to set response header but before trying that I was wondering if you guys have already seen this issue and know a solution to it.
Thanks,
Dee