hectoday
DocsCoursesChangelog GitHub
DocsCoursesChangelog GitHub

Access Required

Enter your access code to view courses.

Invalid code

← All courses

Error Handling and Resilience with @hectoday/http

Build APIs that survive failures. Learn to return structured error responses, wire up a global safety net for unexpected errors, and add resilience patterns like retries, timeouts, circuit breakers, and graceful shutdown to a real e-commerce API.

Intermediate ~5 hours

The problem with errors

  1. Why error handling matters
  2. Project setup

Error fundamentals

  1. JavaScript error types
  2. Try-catch and error propagation
  3. Async errors

Structured error handling

  1. Custom error classes
  2. A global error handler
  3. Operational vs programmer errors

Resilience patterns

  1. Retries
  2. Timeouts
  3. Circuit breakers
  4. Fallbacks and degradation

Server lifecycle

  1. Graceful shutdown
  2. Uncaught exceptions and unhandled rejections
  3. Health checks under failure

Putting it all together

  1. Error handling checklist
  2. Capstone: resilient e-commerce API

© 2026 hectoday. All rights reserved.