ApiError to ApiResponseError