Use correct response codes from the API