rename API errors