code. Codes are emitted by guards and middleware that construct the response directly. Controller errors generally return { status, message, error } without a code.
Storage API codes
MCP codes
Codes that are not stable
Do not depend on:- message text,
- validation field names,
- HTTP reason phrases,
- a
codethat is not in the tables above, - the
errorfield’s contents.
The trial upload exception
A trial upload over 100 MB is rejected with413. The backend defines a trial-specific upload code internally, but the current controller path may return only the standard error envelope. Do not require a code to detect this case: use 413 plus your own pre-flight size check.
Where codes are absent
These failures usually have no stable code:- schema validation (
400), - missing scope on a normal controller route (
403), - file not found (
404), - retention or legal-hold block (
403or400), - restore window elapsed (
410), - decryption state failure (
400or5xx), - insufficient storage (
402).