0xironclad / 0xironclad/Task-Scheduler-API

Error handling middleware

オープン
#28 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api dx
主要言語
TypeScript
スター
0
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
express, node.js, typescript
領域
api, backend
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。