Improved api error handling messages