print error messge when you get a error response