Log detailed errors from API