You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2018. It is now read-only.
Note the res.sendStatus(xxx). The docs say that we can chain a .status(code) with a .send(body) to send a custom body along.
I propose something like this as the syntax for our errors:
{
"errors": [
{"type": "Unauthorized", "message": "You did not specify a valid token."},
{"type": "Unauthorized", "message": "Google said you're bad at doing stuff."}
]
}
Minified, of course.
The text was updated successfully, but these errors were encountered:
This would be a useful addition to our flow.
Currently, we do something like:
oleville-voting/routes/ballot.js
Lines 6 to 11 in 21879ce
Note the
res.sendStatus(xxx)
. The docs say that we can chain a.status(code)
with a.send(body)
to send a custom body along.I propose something like this as the syntax for our errors:
Minified, of course.
The text was updated successfully, but these errors were encountered: