Variant
error-code
Predefined error codes. Covers JSON-RPC standard codes plus ACP-specific ones.
variant error-code {
parse-error,
invalid-request,
method-not-found,
invalid-params,
internal-error,
auth-required,
resource-not-found,
other(s32),
}Cases
| Case | Payload | Description |
|---|---|---|
| parse-error | — | Invalid JSON was received. |
| invalid-request | — | The JSON sent is not a valid Request object. |
| method-not-found | — | The method does not exist or is not available. |
| invalid-params | — | Invalid method parameter(s). |
| internal-error | — | Internal error. |
| auth-required | — | Authentication is required before this operation can be performed. |
| resource-not-found | — | A given resource (e.g. a file) was not found. |
| other | s32 | Any other implementation-defined error code. |