obtain error message from HTTP 4xx response