Getting 500 500 response body using flex

I use an object HttpServicein flex to communicate with the server. I use java on the server (tomcat), and as soon as an exception is raised, the failure event listener is called in flex. I pass the exception data to the response body in xml form.

The point is that the Flex event does not read data from the response. How can I read the response body?

+3
source share
1 answer

In my experience, you cannot. Flex turns any 400-599 response codes into a common IOError and only gives a status code. I understand that this is a limitation for the browser, but I'm not sure about the extent / reason.

, , , 400-599 200-OK , . , , , Flex/Flash RESTful.

+4

Source: https://habr.com/ru/post/1781107/


All Articles