ArgumentsHost is a NestJS utility class that provides an abstraction layer over the host execution context. It works across HTTP, Microservices, and WebSockets contexts, enabling code that is transport-agnostic.

In HTTP context, host.switchToHttp() returns access to the native Request and Response objects:

const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
const request = ctx.getRequest<Request>();

It is primarily used in ExceptionFilter implementations, but also available in guards and interceptors.