Added hasSuccessfulStatusCode