Add method to return all headers of RestResponse