use http status codes to determine success instead of response body