{ "status": "success", "response": … } with the payload in response:
{ "status": "error", "message": … }:
message says what went wrong, in English, for a person to read — don’t branch on its text.
Error codes
The page of each endpoint in the API Reference tab lists when that endpoint answers with which code.
FORBIDDEN also answers a request that would go over one of the API’s edit limits — see Edit limits.
