api: fix typos in api error descriptions