When setting `json: true` if the status code is 0 an error will be thrown due to there being no responseText.