# IMQRPCError.code property · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.code/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Machine-readable failure code.

**Signature:**

```typescript
code: string;
```

## Remarks

The framework emits `IMQ_RPC_NO_METHOD`, `IMQ_RPC_NO_ACCESS`, `IMQ_RPC_INVALID_ARGS_COUNT` and `IMQ_RPC_CALL_ERROR` on the service side, and `IMQ_RPC_CALL_TIMEOUT` on the client side. When a service method throws an error carrying its own `code`, that value is used verbatim instead of `IMQ_RPC_CALL_ERROR`, so application-specific codes also surface here.

These codes are not exported as constants — compare against the string literals.

