Improve status code checking and include response body content checking.