Error shape
message is the real error string from the backend. The code distinguishes protocol errors from runtime failures:
| Code | Meaning |
|---|---|
-32700 | Parse error (invalid JSON) |
-32600 | Invalid request (no method specified) |
-32601 | Unknown or unavailable method |
-32602 | Invalid params (named parameters required) |
-32603 | Internal JSON-RPC error (defined by the dispatcher, rarely emitted) |
500 | Service or internal error |
403 | Authorization denied |
JsonRpcError.code in the OpenAPI reference carries the same enum, regenerated from the backend facade XML (./gradlew :runtime:component:darpan:generateApiContract).
Business validation
Facade business validation does not use the error object. It returns a success envelope withresult.ok: false and the failures in result.errors[]. Treat ok: false as a failed call even though no error object is present.