0xironclad / 0xironclad/Task-Scheduler-API
Error handling middleware
Abierto
api
dx
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Centralize JSON error responses with consistent shape `{error:{message,code}}`.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- express, node.js, typescript
- Área
- api, backend
- Tipo de issue
- Refactorización
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100