Better error response detection