This is fine. The response in this case won't be JSON; this happens when the server blows up and doesn't have a chance to give a formatted response.