improve the example api error output