throw exception on HTTP 5xx