Expand description
Error response envelopes.
Parse has two different error bodies, and they are not interchangeable. Getting this
wrong is invisible in a browser and breaks SDKs, because clients branch on the presence of
code.
| Source | Status | Body |
|---|---|---|
A Parse.Error | 400, or 404 for OBJECT_NOT_FOUND, or 500 for INTERNAL_SERVER_ERROR | {"code":N,"error":"..."} |
| An HTTP-level rejection | as given, e.g. 403 | {"error":"..."} with no code |
Upstream: handleParseErrors (middlewares.js:596-645). The code-less shape comes from
the err.status && err.message branch at :629-631.
Structs§
- Http
Error - An HTTP-level rejection: a status and a message, with no Parse error code.
- Parse
Error Response - A
Parse.Error, with upstream’s status mapping.