display error msgs from api