Make API exceptions implement ApiException to expose errors.