0xironclad / 0xironclad/Task-Scheduler-API

Error handling middleware

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
api dx
Lingua principale
TypeScript
Stelle
0
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Centralize JSON error responses with consistent shape `{error:{message,code}}`.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
express, node.js, typescript
Ambito
api, backend
Tipo di issue
Refactoring
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.