change error message in api