@Override
    public boolean equals(Object other){
        if(other instanceof HttpResponse){
            HttpResponse otherResponse = (HttpResponse) other;
            if(header == null)
                return statusCode == otherResponse.statusCode && 
                        body.equals(otherResponse.body);
            if(body == null)
                return statusCode == otherResponse.statusCode &&
                        header.equals(otherResponse.header);
            else
                return statusCode == otherResponse.statusCode &&
                        header.equals(otherResponse.header) &&
                        body.equals(otherResponse.body);
        }
        return false;
    }