The error codes of git8n
A script reads the code, never the message: the message can change. The CLI prints the address of the page of the code with each error, and --json gives it as error.docs.
| Code | Status | Meaning |
|---|---|---|
G8N1001 | 2 | The command or an option is wrong. |
G8N1002 | 2 | No address of the API: pass --api or set GIT8N_API_URL. |
G8N1003 | 2 | The input of apply is not valid. |
G8N1004 | 2 | The file of the credentials is not valid. |
G8N1005 | 2 | check cannot find the locales, the manifest or the source language. |
G8N2001 | 3 | No account is signed in, or the API refused the token. |
G8N2002 | 1 | The device code expired before somebody approved it. |
G8N2003 | 1 | The person refused the device code. |
G8N2004 | 1 | The scope of the access token does not allow the request. |
G8N3001 | 2 | No repository matches. |
G8N3002 | 2 | The repository is not clear: pass --repo. |
G8N3003 | 2 | The language is not clear, or the account cannot open it: pass --lang. |
G8N3004 | 1 | A key is not a key of the source, or its file has no version in the language. |
G8N4001 | 1 | The API refused the request. |
G8N4002 | 1 | The API failed, or did not answer. |