check response status code instead of response body