Showing how to customize the function buildError to parse the eligibleapi errors