Change error messages for API