How to intercept Http requests in CodeceptJS

How to intercept HTTP requests in CodeceptJS. My requirement is for CodeceptJS to store HTTP requests and response during test execution, so that I could read each and every component on response.