add errors to api result