api error patch