Node.js - Error Handling Patterns
You want to create a custom error class
AuthError that includes a statusCode property for HTTP status codes. Which implementation correctly adds this property and preserves the error behavior?