Store the requests sent and responses received during test execution

How to store API request sent and responses received during test execution in CodeceptJS. Is there any way, if not please guide us with alternative ways.