Coding task · NestJS course · Module 6: Error Handling and Monitoring
Custom Health Indicator
Create a custom Health Indicator that checks connection to an external API
Task
Complete the LegionHealthIndicator class extending HealthIndicator with an isHealthy(key) method that returns this.getStatus(key, true) on success or throws a HealthCheckError on failure