check that response body has error status