0xironclad / 0xironclad/Task-Scheduler-API

Error handling middleware

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
api dx
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, node.js, typescript
Domain
api, backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.