Closed Bug 1024007 Opened 12 years ago Closed 12 years ago

Add a middleware to handle 503 errors

Categories

(Hello (Loop) :: Server, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alexis+bugs, Assigned: rhubscher)

Details

Attachments

(1 file)

56 bytes, text/x-github-pull-request
alexis+bugs
: review+
Details | Review
We're currently duplicating a lot of times code like that: if (err) { logError(err); res.json(503, "Service Unavailable"); } I believe this could add an utility function instead, and that we could call res.error(err) for instance, that would do the necessary things for us.
Assignee: nobody → rhubscher
Attached file Link to github PR —
Attachment #8441349 - Flags: review?(alexis+bugs)
Status: NEW → ASSIGNED
Comment on attachment 8441349 [details] [review] Link to github PR r+wc
Attachment #8441349 - Flags: review?(alexis+bugs) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Fix either went out with a previous deployment to Production or has been superceded by new code...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: