Renamed IsApiError to IsApiErrorWithReason