corrected api error return in doc