Click in order · NestJS course · Module 6: Error Handling and Monitoring
Error Response Elements
Arrange the exception handling steps in an Exception Filter in the correct order
Items to click
- Catch the exception in catch()
- Format the JSON response
- Send response to the client
- Read the status and exception data
- Get the HTTP context (switchToHttp)
You can check the correct answer by solving this task in the CodeWorlds game.