0xironclad / 0xironclad/Task-Scheduler-API
Error handling middleware
Ouverte
api
dx
- Langage dominant
- TypeScript
- Étoiles
- 0
- Forks
- 2
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Centralize JSON error responses with consistent shape `{error:{message,code}}`.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Look for existing error handling in the Express app setup, likely in app.js or a middleware directory. Identify where errors are currently thrown and how they are formatted. Create a middleware function that catches errors, wraps them in the specified JSON shape, and sets appropriate HTTP status codes. Test by triggering different error conditions and verifying the response format.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- express, node.js, typescript
- Domaine
- api, backend
- Type d'issue
- Refactorisation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100