Ticket #11503 (closed bug: invalid)
jqXHR.status and jqXHR.statusText when body is empty
|Reported by:||jeroen||Owned by:|
I'm developing a REST client based on jQuery. The server often responds with informative status codes (e.g. 404, 400, 302) without sending any content in the body.
When doing an ajax request in jQuery and a server responds without sending any content in the body, the jqXHR.status contains 0. I suppose maybe when the body is empty, the request is not further parsed anymore. But actually the status code is often useful in itself, even when there is no body or error message.