Wasm Directoryalpha
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

CasePayloadDescription
parse-errorInvalid JSON was received.
invalid-requestThe JSON sent is not a valid Request object.
method-not-foundThe method does not exist or is not available.
invalid-paramsInvalid method parameter(s).
internal-errorInternal error.
auth-requiredAuthentication is required before this operation can be performed.
resource-not-foundA given resource (e.g. a file) was not found.
others32Any other implementation-defined error code.