Thrown for every non-2xx API response. message is unchanged (title\ndetail\nverbose of the
ec error body), on top it carries the HTTP status, the ec error code (e.g. 2112) and the
parsed error body as info.
Example
try { awaitfdk("stage").dm("83cc6374").model("muffin").editEntrySafe(id, { name:"x", _modified }); } catch (err) { if (isStaleWriteError(err)) { ... } // someone else saved in between }
Thrown for every non-2xx API response.
messageis unchanged (title\ndetail\nverboseof the ec error body), on top it carries the HTTPstatus, the ec errorcode(e.g. 2112) and the parsed error body asinfo.Example