I have created an object that has the headers, status code and payload that the method returned:
public class Custom { private T body; private HttpSt