Cannot see response body in ie8 when response http status code is set to some error code(422)

Posted by Deewendra Shrestha on Stack Overflow See other posts from Stack Overflow or by Deewendra Shrestha
Published on 2013-10-30T21:08:47Z Indexed on 2013/10/30 21:54 UTC
Read the original article Hit count: 228

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about internet-explorer

Related posts about grails