Middleware in NestJS

The previous article covered exception filters: the stage at the end of the request pipeline that catches whatever went wrong and shapes it into a consistent error response.