# AFTER_HOOK_ERROR variable · @imqueue/rpc

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

Prefix used when logging a failure inside an `afterCall` hook.

**Signature:**

```typescript
AFTER_HOOK_ERROR = "After call hook error:"
```

## Remarks

The hook always runs after the response has been sent (service side) or after the call promise has settled (client side), so a throwing after-hook cannot change the call's outcome. It is a log prefix, not an [IMQRPCError.code](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.code/) value.

