Extension to add Global Error Handler/Response Handler

Open
#5,249 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Domain
api, backend

Research direction

The issue names no files, tests, or entry points; begin by tracing Express’s existing error and response handling and checking project conventions. A complete issue should define the extension point, response envelope, error behavior, and acceptance criteria for success and failure responses.

Written by the indexing model from the issue text.

Description

awaiting more info

Idea:

Add an option to extend a internal global error handler and response envelope wrapper.

This basically wraps the response into a wrapper and automatically takes care of the error and how's it wrapped into json.

Like wise for success responses too.

Dominant language
JavaScript
Stars
69.7k
Forks
25.6k
Avg merge
2d 9h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from expressjs/express

All issues in expressjs/express

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.