English
Errors
This guide covers every error code:
- Error Format
- Container Errors
- Router Errors
- WebSocket Errors
- Pipeline Errors
- HTTP Errors
- Session Errors
- Application Errors
- Console Errors
- Scheduler Errors
- Event Errors
- RPC and GraphQL Errors
- HTTP Client Errors
- Archive Errors
- Atlas Errors
- Atom Errors
- Aurora Errors
- Bay Errors
- Blackhole Errors
- Chronos Errors
- Comet Errors
- Echo Errors
- Eclipse Errors
- Eon Errors
- Ephemeris Errors
- Flare Errors
- Goldstone Errors
- Helix Errors
- Helix Plugin Errors
- Inker Errors
- Lumen Errors
- Nebula Errors
- Neutrino Errors
- Nova Errors
- Orbit Errors
- Orbit Clipboard Errors
- Orbit Secure Store Errors
- Parsec Errors
- Photon Errors
- Prism Errors
- Quasar Errors
- Ream MCP Errors
- Relay Errors
- Robledo Errors
- Rosetta Errors
- Rover Errors
- Rune Errors
- Sigil Errors
- Spectrum Errors
- Station Errors
- Transit Errors
- Vellum Errors
- Visa Errors
- Warden Errors
Every framework error carries a stable code that starts with E_. A package's own codes add the package name (E_ATLAS_EMPTY_SELECT, E_WARDEN_MFA_REQUIRED); a few shared identifiers keep a plain form (E_ROW_NOT_FOUND, E_UNAUTHORIZED_ACCESS, E_VALIDATION_ERROR). Search for the code below: each one has its own anchor, the code in lower case with - for _ (#e-atlas-empty-select), and that is where an error's docsUrl points.
The codes of @c9up/ream itself come first, then each package's, in alphabetical order. The HTTP column gives the status the error answers with; — means it is not an HTTP answer but an error raised to the caller (configuration, programming or runtime).
Error Format
Errors raised by the framework core print a diagnostic box in development:
┌──────────────────────────────────────────────┐
│ [E_CONTAINER_NOT_FOUND] No binding found for 'mailer'. Did you mean 'mail'?
│
│ Hint: Register it with container.singleton() or decorate with @inject().
│ Docs: https://reamjs.com/en/reference/errors#e-container-not-found
└──────────────────────────────────────────────┘An error raised inside the request pipeline adds a Pipeline: <n>/<total> (<stage>) line. In production mode, only the code and message are shown.
An HTTP error answers with { "error": { "code": "…", "message": "…" } } and the error's status.
Container Errors
| Code | HTTP | Description |
|---|---|---|
E_CONTAINER_NOT_FOUND | 500 | No binding found for the requested token. Includes "did you mean?" suggestions for typos. Register it with container.singleton() or decorate the class with @inject(). |
E_CIRCULAR_DEPENDENCY | 500 | Circular dependency (or circular alias) detected during resolution. Use explicit factories or decouple via events. |
E_CONTAINER_MISSING_METADATA | 500 | A class declares constructor parameters but the container finds no dependency metadata for them. Enable decorator metadata, annotate the parameters with @inject(), or declare static containerInjections. |
E_CONTAINER_RESERVED_TOKEN | 500 | The token name reads as an Object.prototype key (constructor, __proto__…). Pick another name. |
E_CONTAINER_MISSING_ASKS_FOR | 500 | container.when(...).provide() was called before asksFor(): the contextual binding does not say which dependency it replaces. |
E_CONTAINER_METHOD_NOT_CALLABLE | 500 | container.call() named a member of the instance that is not a method. |
E_CONTAINER_INVALID_DECORATOR_TARGET | 500 | @Service() or @inject() was put on something that is not a class (or, for @inject(), one of its methods). |
Router Errors
| Code | HTTP | Description |
|---|---|---|
E_ROUTE_NOT_FOUND | 404 | No route matches the requested method and path. The message is Cannot GET:/path. |
E_DUPLICATE_ROUTE | 500 | Two routes declare the same method and path. |
E_DUPLICATE_ROUTE_NAME | 500 | Two routes carry the same name. |
E_MISSING_ROUTE_NAME | 500 | A named group prefixes a route that has no name of its own. Name every route of a named group. |
E_INVALID_ROUTE_DOMAIN | 500 | A route domain has a parameter without a name, or the same parameter twice. |
E_UNREGISTERED_CONTROLLER | 500 | A route names a controller by string that is not registered. |
E_NO_VIEW_ENGINE | 500 | router.on(path).render() was used and no template engine is installed. |
E_VALIDATOR_NOT_FOUND | 500 | A route names a validator that is not registered. |
E_INVALID_CONTROLLER_REFERENCE | 500 | A route handler string is not of the form 'Controller.method'. |
E_INVALID_RESOURCE_NAME | 500 | router.resource() was given an empty name. |
E_CONTROLLER_METHOD_NOT_FOUND | 500 | The controller a route names has no such method. Answered with 500. |
E_MISSING_ROUTE_PARAMS | 500 | A URL was built for a route without one of its required parameters. |
E_CANNOT_LOOKUP_ROUTE | 500 | urlFor(), findOrFail() or the test client's visit() named a route that does not exist. |
E_EMPTY_GATE_REQUIREMENT | 500 | .guard(), .role() or .permission() was called with nothing, or a route group, an RPC group, config/rpc.ts, config/openapi.ts or a GraphQL resolver was given an empty guards, roles or permissions list. An empty requirement would protect nothing. Raised where the route, method or resolver is declared; for a controller action whose @Role(), @Permission() or @Guard() names nothing, on each request to it. |
WebSocket Errors
| Code | HTTP | Description |
|---|---|---|
E_WEBSOCKET_UPGRADE_REQUIRED | 426 | A plain request reached a WebSocket route. |
E_WEBSOCKET_UNSUPPORTED | 501 | A WebSocket route was reached on a server that cannot hold WebSockets. |
E_WEBSOCKET_BAD_HANDSHAKE | 400 | The handshake is not an HTTP/1.1 GET, lacks Connection: upgrade, or its Sec-WebSocket-Key is not 16 bytes. Answered by the server, before routing. |
E_WEBSOCKET_VERSION | 426 | A WebSocket version other than 13. Answered with Sec-WebSocket-Version: 13, before routing. |
E_WEBSOCKET_ORIGIN | 403 | A browser origin that http.webSocket.allowedOrigins does not allow (same origin by default). Answered before routing. |
E_WEBSOCKET_PROTOCOL | 500 | socket.acceptProtocol() named a subprotocol the client did not offer. |
E_WEBSOCKET_NOT_REGISTERED | 500 | A response was 101 without a registered socket. |
E_WEBSOCKET_NOT_UPGRADE | 500 | A 101 answered a request that was not a WebSocket handshake. |
E_WEBSOCKET_REGISTER | 500 | The native server refused a fresh socket id. |
E_WEBSOCKET_CONTEXT | 500 | A WebSocket route's handler ran without its socket (called outside the kernel). |
E_WEBSOCKET_CLOSE_CODE | 500 | socket.close() with a code a close frame may not carry (RFC 6455 §7.4). |
E_WEBSOCKET_CLOSE_REASON | 500 | A close reason over 123 bytes. |
E_INVALID_WEBSOCKET_CONFIG | 500 | A native WebSocket limit of 0 bytes. |
E_TEST_CLIENT_WEBSOCKET_REFUSED | 500 | The test client's WebSocket handshake was refused (WebSocketRefused carries the status) or failed. |
Pipeline Errors
| Code | HTTP | Description |
|---|---|---|
E_PIPELINE_UNKNOWN_MIDDLEWARE | 500 | A route references a named middleware that is not registered. Register it with middleware.register(). |
E_MIDDLEWARE_NOT_FOUND | 500 | A route, an RPC method or a GraphQL resolver names a middleware nothing declared. Declare it with router.named() (or middleware.register()). An HTTP route's names are checked when the kernel is built: the application stops at boot, and the message names the route. |
E_MIDDLEWARE_ENTRY | 500 | A middleware entry with no declared parameters was read as a lazy import, and it did not resolve to a module with a default export. |
E_PIPELINE_DOUBLE_NEXT | 500 | A middleware called next() more than once. Each middleware should call next() at most once. |
E_PIPELINE_ERROR | 500 | A handler threw an error that carries no framework code. The error keeps the stage position in its context. |
E_VALIDATOR_UNUSABLE | 500 | A route validator exposes none of validateResultAsync(), validateResult() or validate(). |
HTTP Errors
Raised by @c9up/ream's exceptions and its native HTTP server. The server's own refusals are answered before any middleware runs.
| Code | HTTP | Description |
|---|---|---|
E_UNKNOWN | 500 | The default code of an Exception that sets none, and of an error rebuilt from the native layer without a code. |
E_HTTP_EXCEPTION | 500 | A generic HTTP error carrying the response body. E_HTTP_EXCEPTION.invoke(body, status, code?) builds one: the message is a string body, or the message of an object body. |
E_HTTP_REQUEST_ABORTED | 400 | The class response.abort() (or abortIf / abortUnless) throws; the body given is sent with the status given, 400 by default. It extends E_HTTP_EXCEPTION and carries its code. |
E_VALIDATION_ERROR | 422 | The request data failed validation. The message is Validation failure, messages carries one entry per field and rule; a browser form is redirected back with the errors flashed. |
E_REQUEST_ENTITY_TOO_LARGE | 413 | The request body is over the body parser's limit. Reading the raw body of such a request raises it too. |
E_HANDLER_FAILURE | 500 | The exception handler itself threw while rendering an error. |
E_HTTP_CONTEXT_NOT_FOUND | 500 | HttpContext.getOrFail() was called outside a request, or with ambient-context tracking turned off. Pass ctx explicitly. |
E_RESPONSE_TOO_LARGE | 500 | A response body is over the configured ceiling. Bodies are held whole in memory, so a large file should be streamed or served from storage. |
E_BODYPARSER_CONFIG | 500 | The body parser config uses an option that is no longer supported. |
E_BODYPARSER_INVALID_SIZE | 500 | A body size limit is neither a number of bytes nor a size such as '1mb'. |
E_BODYPARSER_INVALID_JSON | 400 | A JSON body is malformed (400), or under json.strict is neither an object nor an array (422). |
E_HTTP_REQUEST_TIMEOUT | 408 | The native server did not receive the request body in time. |
E_REQUEST_ABORTED | 400 | The client closed the connection while the body was being read. |
E_PATH_TRAVERSAL | 400 | The native server found .. in the path, raw or percent-encoded. |
E_PARAMETER_POLLUTION | 400 | The native server found a query-string key twice. |
E_TOO_MANY_REQUESTS | 429 | The native server's rate limit refused the request; the body carries retryAfter, with Retry-After and X-RateLimit-* headers. |
E_STREAM_UNKNOWN | 500 | A server-sent event stream id is unknown to the server. |
E_RESPONSE_INVALID_HEADER | 500 | A header name or value carries CR, LF or NUL, which would split the response. |
E_RESPONSE_INVALID_COOKIE | 500 | A cookie a browser would reject or misread: a name outside the cookie token grammar, a path or domain outside the attribute grammar, sameSite: true, SameSite=None or partitioned without secure, an invalid expires date, or an http.cookie block with an unknown key or a value of the wrong type. |
E_RESPONSE_NO_CONTEXT | 500 | response.redirect() on a response built outside a request. |
E_RESPONSE_SSE_UNSUPPORTED | 500 | response.sse() on a server that has no stream backend. |
E_REDIRECT_NO_ROUTER | 500 | redirect().toRoute() with no route URL resolver wired. |
E_STREAM_REGISTER | 500 | The server refused a fresh server-sent event stream id. |
E_MULTIPART_UNSAFE_FILE_NAME | 500 | file.move() was given, or derived from the client's file name, a name that is not a plain file name. |
E_MULTIPART_FILE_EXISTS | 500 | file.move() found a file at the destination and overwrite is off. |
E_TEST_CLIENT_NO_ROUTE_MANIFEST | 500 | The test client's visit() needs routes: router.namedManifest() in the client options. |
E_TEST_CLIENT_TIMEOUT | 500 | A test client request, or a test WebSocket message, did not arrive within its timeout. |
E_TEST_CLIENT_MISSING_CSRF_TOKEN | 500 | withCsrf() was called with no token and no CSRF cookie set. |
E_TEST_CLIENT_NO_AUTH_STRATEGY | 500 | withAuth() or asUser() was used without an auth strategy in the client options. |
E_TEST_CLIENT_NO_SESSION_SEEDER | 500 | loginAs() with a session guard, and no sessionSeeder in the client options. |
E_TEST_CLIENT_UNKNOWN_SERIALIZER | 500 | serialize() named a serializer that is not registered. |
E_TEST_CLIENT_ASSERTION_FAILED | 500 | An assertion of the test client's response failed |
E_UNAUTHORIZED_ACCESS | 403 | A route's .auth() guard refused the request, or .role() / .permission() found no authenticated user. The same code, status, message (Unauthorized access) and rendering (handle) as @c9up/warden's. |
E_AUTHORIZATION_FAILURE | 403 | A route's .role() or .permission() refused an authenticated user. The same code, status, message (Access denied) and rendering (handle) as @c9up/warden's; the roles and permissions asked for are not sent. |
E_ENCODING_UNSUPPORTED | 415 | A JSON, form or text body arrives with a Content-Encoding other than identity. The body parser does not inflate bodies, gzip and deflate included. |
E_INVALID_MULTIPART_REQUEST | 400 | A multipart/form-data body is malformed, or its boundary parameter is missing. |
E_SERVER_INVALID_PORT | 500 | The native server was given a port above 65535. |
E_SERVER_INVALID_HOST | 500 | The native server's bind address is not an IPv4 or IPv6 address, nor localhost. |
E_SERVER_INVALID_TRUSTED_PROXY | 500 | A trustedProxies() entry is not an address, a CIDR range, a netmask range, a named range or *. The server refuses to start. |
E_SERVER_INVALID_BODY_LIMIT | 500 | A body limit handed to the native server is not a byte count or a part count of zero or more. |
E_SERVER_BIND_FAILED | 500 | The native server could not bind its address: the port is taken, or the address is not on this machine. |
E_SERVER_NO_HANDLER | 500 | The native server was started before a request handler was registered. |
E_SERVER_NOT_STARTED | 500 | The native server's port was read before the server started. |
E_SERVER_LOCK_POISONED | 500 | A lock of the native server was left poisoned by a panic. This is a bug in Ream. |
E_CRYPTO_FAILED | 500 | A native crypto call (hmacSign(), randomHex()…) failed in the engine. |
E_WARDEN_MFA_REQUIRED | 403 | The route gate reached a controller action carrying @RequireMfa() with a credential that did not complete the MFA step-up (ctx.auth.user.mfa is not true). The same code, status, message and body as @c9up/warden's middleware: 403 { error: { code, message } }. |
Session Errors
| Code | HTTP | Description |
|---|---|---|
E_SESSION_NOT_READY | 500 | session.<method>() needs a session store, and this session was built without one. |
E_SESSION_STORE_NOT_CONFIGURED | 500 | The session config names no store. Set store, or store: 'memory' for sessions kept in this process only. |
E_SESSION_STORE_NOT_CONDITIONAL | 500 | The store has no update(), so it cannot write a session back only while it still exists; a request running across a logout could sign the user in again. |
E_SESSION_TAGGING_NOT_SUPPORTED | 500 | A session tagging method was called on a store that does not support it. Use the memory, redis or database store. |
E_SESSION_COOKIE_NOT_HTTP_ONLY | 500 | The session cookie is configured with httpOnly: false. Remove it: a script able to read the cookie turns any XSS into an account takeover. |
E_SESSION_TEMPLATE_ENGINE_UNUSABLE | 500 | The template engine is installed but the session tags cannot be registered on it. |
E_SESSION_MISSING_SECRET | 500 | The cookie session store has no secret. |
E_SESSION_MISSING_LOCATION | 500 | The file session store has no location. |
E_SESSION_INVALID_CONNECTION | 500 | The database session store's connection lacks query() and execute(). |
E_SESSION_UNKNOWN_DRIVER | 500 | The session config names a driver that does not exist. |
E_SESSION_INVALID_GC_PROBABILITY | 500 | gcProbability is not a percentage between 0 and 100. |
E_SESSION_INVALID_TABLE_NAME | 500 | The session table name is not a plain identifier. |
E_SESSION_FILE_LOCKED | 500 | Another request kept the session file locked longer than the store waits. |
E_SESSION_QUASAR_MISSING | 500 | A Redis session store names a quasar connection and @c9up/quasar is not installed. |
E_SESSION_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks the commands a session store sends. |
Application Errors
Raised while the application is assembled, configured and started.
| Code | HTTP | Description |
|---|---|---|
E_INVALID_ENV_VARIABLES | 500 | Env.create() found environment variables that fail their schema. The message is Validation failed for one or more environment variables; help lists each one on a - line, and failures holds them. |
E_REAMRC_UNKNOWN_OPTION | 500 | reamrc.ts tests holds an option that does not exist. |
E_IGNITOR_ALREADY_STARTED | 500 | warmUp() was called while the application was already past that phase. |
E_IGNITOR_WARMUP_ONLY | 500 | An application assembled with warmUp() was started. Build a fresh Ignitor to run one. |
E_IGNITOR_INVALID_PORT | 500 | PORT is not an integer between 0 and 65535. |
E_IGNITOR_INVALID_HTTP_CONFIG | 500 | An http.<key> limit is not a whole number in range. |
E_IGNITOR_NO_SERVER_FACTORY | 500 | httpServer() was called with no serverFactory in the config. |
E_IGNITOR_GRPC_UNSUPPORTED | 500 | A gRPC handler is registered, but this server cannot serve gRPC. |
E_SERVER_GRPC_ALREADY_SET | 500 | A second gRPC handler was registered on the server. |
E_SERVER_GRPC_INVALID_LIMIT | 500 | A gRPC message size limit is not a whole number of bytes, or -1 for no limit. |
E_REAM_STUB_SYNTAX | 500 | A stub template has a syntax error. |
E_ENV_FILE_NOT_FOUND | 500 | A .env value file:<path> names a file that does not exist. The message names the variable and the path. |
E_ENV_CIRCULAR_REFERENCE | 500 | .env values reference each other in a loop (A=$B, B=$A). |
E_IDENTIFIER_ALREADY_DEFINED | 500 | Env.defineIdentifier() was given a name already registered (file is built in). Use defineIdentifierIfMissing() or remove the identifier first. |
E_APP_MISSING_IMPORTER | 500 | app.import() / app.importDefault(id) was called on an application built without an importer. |
E_DUMP_DIE_EXCEPTION | 500 | dd() stopped the request (answered with an HTML dump) or the command (printed the dump). Never reported. |
E_APP_ALREADY_BOOTED | 500 | app.setMode() or app.setEnvironment() was called after the application booted. |
E_APP_ROOT_NOT_SET | 500 | app.makePath() (or another path helper) on an application with no root. |
E_APP_MISSING_DEFAULT_EXPORT | 500 | A lazily imported module (app.importDefault(), a lazy listener, a route's lazy controller) has no default export. |
E_APP_SHUTDOWN_FAILED | 500 | Several terminating or shutdown hooks failed; the error holds each failure in errors. |
E_SERVICE_NOT_BOOTED | 500 | A @c9up/ream/services/* accessor, urlFor() or signedUrlFor() was used before the application booted it. |
E_ENV_PATH_NO_FILE | 500 | ENV_PATH names a directory that holds none of the .env files. |
E_MIGRATION_SOURCE_CONFLICT | 500 | Two providers registered a migration source under the same name. |
E_INVALID_DURATION | 500 | A duration (a session age, a cookie maxAge, a signed URL expiry…) is neither a number nor a string such as '30m'. |
E_BASE64_MALFORMED | 500 | base64.decode() or base64.urlDecode() in strict mode met a malformed value. |
E_HEALTH_INVALID_THRESHOLD | 500 | A memory health check threshold is not a byte size, or not a percentage between 0 and 100. |
E_REAM_STUB_NOT_FOUND | 500 | No stub at the given path. |
E_REAM_STUB_UNSAFE_PATH | 500 | A stub path, or the destination a stub declares, is absolute or leaves its root, or a generator's destination is a symbolic link leading outside the project or to nothing. |
E_REAM_STUB_NO_DESTINATION | 500 | A stub declares no destination (no to: front-matter line), or an empty one. |
E_REAM_STUB_FORBIDDEN_KEY | 500 | A stub template reads or sets a key it may not reach (constructor, __proto__…). |
E_REAM_STUB_EVALUATION | 500 | A stub template failed while rendering: an unknown name, a property of nothing, a call to what is not a function, {{#each}} over what is not a list. |
E_CODEMODS_FILE_NOT_FOUND | 500 | A codemod needs reamrc.ts, start/kernel.ts or start/env.ts and the file does not exist. |
E_CODEMODS_UNRECOGNIZED_SOURCE | 500 | A codemod could not find what it edits in the file (providers: [, defineConfig({ ... }), router.use([, Env.create(...)…). Make the change by hand. |
E_CODEMODS_UNSAFE_PATH | 500 | A codemod was asked to write outside the project: an absolute path, .., a symlink that resolves outside, or an unsafe module path. |
E_CODEMODS_INVALID_OPTION | 500 | A codemod option is out of range: a middleware position or tier, a preload environment. |
E_CODEMODS_INVALID_ENV_VARIABLE | 500 | An environment variable name is not an identifier, or its value holds a line break. |
E_CODEMODS_INVALID_ENV_VALIDATION | 500 | defineEnvValidations() was given a comment over one line, or a rule that is not one complete expression. |
E_CODEMODS_MIDDLEWARE_CONFLICT | 500 | A middleware is already registered in the other tier of start/kernel.ts. |
E_REAM_INTERNAL | 500 | An invariant inside @c9up/ream broke; a bug to report. |
E_REAM_NAPI_UNSUPPORTED_PLATFORM | 500 | No prebuilt native binary (scheduler, event bus, GraphQL) exists for this platform and architecture. |
E_REAM_NAPI_LOAD_FAILED | 500 | A native binary of ream exists but cannot be loaded (wrong platform, Node ABI or a corrupt file); cause is the loader's error. |
E_REAM_NAPI_NOT_FOUND | 500 | A native binary of ream is not found. On Alpine/musl: the prebuilt Linux binaries target glibc. |
E_MISSING_ENCRYPTER_KEY | 500 | Encryption, a signed cookie or a signed URL was used and APP_KEY is not set. help names what needed it. |
E_INSECURE_ENCRYPTER_KEY | 500 | APP_KEY is shorter than 16 characters, or is a key known from scaffolding or documentation. |
E_MISSING_PROVIDER_FILE | 500 | A reamrc.ts providers entry has no file. |
E_INVALID_PROVIDER | 500 | A reamrc.ts providers entry has a file that is not a function. A provider module with no default export, or whose default export is not a class, raises E_RUNTIME_EXCEPTION. |
E_MISSING_PRELOAD_FILE | 500 | A reamrc.ts preloads entry has no file. |
E_INVALID_PRELOAD_FILE | 500 | A reamrc.ts preloads entry has a file that is not a function. |
E_NATIVE_CALLBACK_FAILED | 500 | A JavaScript callback the native binding could not hold: napi refused to wrap it. napi's own status is in the message. |
E_NATIVE_PANIC | 500 | A Rust panic in a native binding, caught before it could stop the process. This is a bug in Ream. The scheduler reports it as E_SCHEDULER_NATIVE_ERROR. |
Console Errors
| Code | HTTP | Description |
|---|---|---|
E_CONSOLE_COMMAND_NOT_FOUND | 500 | No command has this name. |
E_CONSOLE_MISSING_ARGUMENT | 500 | A required argument was not given. |
E_CONSOLE_MISSING_ARGUMENT_VALUE | 500 | An argument was given with no value. |
E_CONSOLE_UNEXPECTED_ARGUMENT | 500 | More arguments than the command declares. |
E_CONSOLE_UNKNOWN_FLAG | 500 | A flag the command does not declare. |
E_CONSOLE_MISSING_FLAG | 500 | A required flag was not given. |
E_CONSOLE_MISSING_FLAG_VALUE | 500 | A flag that takes a value was given without one. |
E_CONSOLE_INVALID_FLAG_VALUE | 500 | A flag value of the wrong type. |
E_CONSOLE_INVALID_FLAG_GROUP | 500 | Short flags were grouped (-abc) with one that cannot be grouped. |
E_CONSOLE_NOT_INTERACTIVE | 500 | A command asked a question while stdin is not interactive. Pass the value as a flag. |
E_CONSOLE_PROMPT_CANCELLED | 500 | The user cancelled a prompt. |
E_CONSOLE_EMPTY_CHOICES | 500 | A choice prompt was asked with no options. |
E_CONSOLE_INVALID_TRAP_VALUE | 500 | A scripted answer (a prompt trap in a test) was rejected by the prompt's own validation. |
E_CONSOLE_TRAP_OUT_OF_RANGE | 500 | A prompt trap chose an option that was not offered. |
E_CONSOLE_DUPLICATE_COMMAND | 500 | Two commands claim the same name. |
E_CONSOLE_INVALID_COMMAND | 500 | An entry of reamrc.ts commands is neither a command loader nor a default-exported command class. |
E_CONSOLE_INVALID_COMMAND_METADATA | 500 | A command loader exported metadata that does not describe a command. |
E_CONSOLE_INVALID_ARGUMENT | 500 | A command declares its arguments in an order that cannot be parsed: an argument after a spread one, or a required one after an optional one. |
E_CONSOLE_INVALID_ALIAS | 500 | A command alias expands to nothing. |
E_CONSOLE_LATE_GLOBAL_FLAG | 500 | A global flag was declared after the kernel started. |
E_CONSOLE_LATE_LOADER | 500 | A command loader was added after the kernel started. |
E_CONSOLE_KERNEL_RUNNING | 500 | A command is already running through this kernel. |
E_CONSOLE_KERNEL_COMPLETED | 500 | The kernel has finished; it cannot run another command line. |
E_CONSOLE_NOT_BOOTED | 500 | A console application method was called before the commands were loaded. |
E_CONSOLE_NO_APP | 500 | A command needs the application and the kernel has none. Dispatch through the Ignitor's console kernel. |
E_CONSOLE_APP_NOT_STARTED | 500 | A command used the application without declaring startApp: true in its options. |
E_CONSOLE_ASSERTION_FAILED | 500 | An assertion on a command run in a test failed (assertSucceeded(), assertLog(), assertTableRows()…). |
Scheduler Errors
| Code | HTTP | Description |
|---|---|---|
E_SCHEDULE_INVALID_CRON | 500 | A scheduled task's cron expression could not be registered. |
E_SCHEDULE_INVALID_TARGET | 500 | @Schedule was put on a static method. |
E_SCHEDULE_SYMBOL_METHOD | 500 | @Schedule was put on a symbol-keyed method. |
E_SCHEDULE_ANONYMOUS_CLASS | 500 | An anonymous class declares @Schedule; its task names would collide. |
E_SCHEDULE_METHOD_NOT_FOUND | 500 | A scheduled method is not callable on the instance the container resolved. |
E_SCHEDULE_INVALID_CALLBACK | 500 | Scheduler.register() was given something other than a function. |
E_SCHEDULE_INVALID_TASK_NAME | 500 | Scheduler.register() was given an empty task name. |
E_SCHEDULE_INVALID_LOCK_BACKEND | 500 | lockBackend does not implement acquire(name, ttlMs) and release(name). |
E_SCHEDULE_INVALID_LOCK_TTL | 500 | defaultLockTtlMs is not a finite positive number. |
E_SCHEDULE_INVALID_EVENT_SINK | 500 | eventSink does not implement emit(event). |
E_SCHEDULE_INVALID_ERROR_REPORTER | 500 | errorReporter is not a function. |
E_SCHEDULE_TASK_UNKNOWN | 500 | runTaskNow() named a task that is not registered. |
E_SCHEDULE_TASK_TIMEOUT | 500 | A task did not complete within its timeoutMs; it keeps running in the background. |
E_SCHEDULE_PROVIDER_ALREADY_REGISTERED | 500 | The scheduler provider was registered twice on the same container. |
E_SCHEDULER_NATIVE_ERROR | 500 | A call into the native scheduler failed. |
E_SCHEDULE_QUASAR_MISSING | 500 | The scheduler lock names a quasar connection and @c9up/quasar is not installed. |
E_SCHEDULE_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks the commands a scheduler lock sends. |
E_SCHEDULER_INVALID_CRON | 500 | The native scheduler refused a cron expression (Rust INVALID_CRON). help says what a cron expression looks like. |
E_SCHEDULER_CRON_NO_FIRE | 500 | The native scheduler refused a cron expression that never fires (Rust CRON_NO_FIRE). |
E_SCHEDULER_DUPLICATE_TASK | 500 | The native scheduler already has a task of that name (Rust DUPLICATE_TASK). |
Event Errors
| Code | HTTP | Description |
|---|---|---|
E_EVENTS_UNSUPPORTED_STORE | 500 | config/events.ts names a store other than 'memory', the only one this build has. |
E_EVENTS_UNSUPPORTED_OPTION | 500 | config/events.ts holds an option nothing reads (retries included), or is not an object. |
E_EVENTS_MISSING_LISTENER_METHOD | 500 | A listener class has no method of the name the listener was registered with. |
E_EVENTS_INVALID_ARGUMENT | 500 | onAny() without a listener, or waitForChain() with no event names. |
E_EVENTS_ASSERTION_FAILED | 500 | An event assertion failed (assertEmitted(), assertNotEmitted(), on the helpers or the FakeBus). |
E_EVENTS_TIMEOUT | 500 | An awaited event, event chain or fake request reply did not arrive within its timeout. |
E_EVENTS_DUPLICATE_REQUEST_HANDLER | 500 | FakeBus.onRequest() was given a second handler for the same name. |
E_EVENTS_NO_REQUEST_HANDLER | 500 | emitter.request() or FakeBus.request() named a request no handler answers. |
E_EVENTS_HANDLER_FAILED | 500 | A request handler panicked, or refused the request with an error of its own. |
E_EVENTS_BUS_FAILED | 500 | The native event bus failed: its task panicked or was cancelled, or an event could not be serialized. |
RPC and GraphQL Errors
| Code | HTTP | Description |
|---|---|---|
E_RPC_INVALID_METHOD_NAME | 500 | An RPC method name is empty or not a string. |
E_RPC_RESERVED_METHOD_NAME | 500 | An RPC method takes a reserved name (rpc.*). |
E_RPC_UNKNOWN_CONTROLLER_METHOD | 500 | An RPC route names a controller method that does not exist. |
E_RPC_PROVIDER_ALREADY_REGISTERED | 500 | The RPC provider was registered twice on the same container. |
E_GRAPHQL_PROVIDER_ALREADY_REGISTERED | 500 | The GraphQL provider was registered twice on the same container. |
E_GRAPHQL_SCHEMA_NOT_FOUND | 500 | The GraphQL schemaPath names a file that does not exist. |
E_GRAPHQL_INVALID_SCHEMA | 500 | The GraphQL schema does not parse, declares a type twice, or names a type it does not declare. Every query is then refused with GraphQL schema could not be read, and the reason is logged. |
E_GRAPHQL_SERIALIZE_FAILED | 500 | The native GraphQL parser could not serialize its result. |
E_GRAPHQL_INVALID_RESULT | 500 | A GraphQL resolver returned a value its field's declared type cannot hold: an object under a String, something that is not a list under [Task], a value of an interface or union whose object type is not known. The field fails; the client reads Internal server error outside debug. |
HTTP Client Errors
Raised by the outbound HTTP client.
| Code | HTTP | Description |
|---|---|---|
E_HTTP_CLIENT_INVALID_URL | — | The URL cannot be parsed, is not http or https, or carries credentials (send them in a header). |
E_HTTP_CLIENT_PRIVATE_ADDRESS | — | The host is, or resolves to, an address that is not public. |
E_HTTP_CLIENT_UNREACHABLE | — | The host could not be reached. |
E_HTTP_CLIENT_TIMED_OUT | — | The request did not complete within its timeout. |
E_HTTP_CLIENT_TOO_LARGE | — | The response body is over the size limit. |
E_HTTP_CLIENT_REDIRECT_REFUSED | — | A redirect was refused: too many of them, from https to http, or to another host. |
Archive Errors
Raised by @c9up/archive. The signed-file route answers its refusals as JSON with the status shown.
| Code | HTTP | Description |
|---|---|---|
E_ARCHIVE_INVALID_SIGNATURE | 403 | The signed URL's signature is missing a part, malformed or does not match. |
E_ARCHIVE_EXPIRED_SIGNATURE | 403 | The signed URL has expired. |
E_ARCHIVE_ACCESS_DENIED | 403 | An unsigned request asked for anything but a stored public file: a private file, a name that is not stored, any file of a private disk. |
E_ARCHIVE_INVALID_KEY | 500 | The signed route refused the path: a key with traversal or characters keys may not hold. |
E_ARCHIVE_NOT_FOUND | 404 | No file is stored under the key. The signed route answers 404; a driver call throws it. |
E_ARCHIVE_PATH_TRAVERSAL_DETECTED | 500 | A key resolves outside the disk root. |
E_ARCHIVE_INVALID_EXPIRY | 500 | A signed URL expiry is not a positive duration (a number of seconds or a string such as '30mins'). |
E_ARCHIVE_SIGNING_DISABLED | 500 | getSignedUrl() was called on a local disk built without a signingSecret. |
E_ARCHIVE_WEAK_SIGNING_SECRET | 500 | The local disk's signingSecret is shorter than 16 characters. |
E_ARCHIVE_SIGNED_UPLOAD_UNSUPPORTED | 500 | The local disk has no presigned upload URL; only cloud disks do. |
E_ARCHIVE_INVALID_HEADER_VALUE | 500 | A value to sign as a response header holds a control character. |
E_ARCHIVE_INVALID_ROUTE_BASE_PATH | 500 | The local disk's routeBasePath is not an absolute URL path such as /storage. |
E_ARCHIVE_PREFIX_MISMATCH | 500 | createSignedRouteHandler() was given a prefix that differs from the disk's routeBasePath, so no signed URL could reach it. |
E_ARCHIVE_VISIBILITY_CORRUPT | 500 | A file's visibility record cannot be read; archive refuses to treat the file as public. |
E_ARCHIVE_VISIBILITY_MOVE_FAILED | 500 | move() moved the file but could not write its visibility at the target. |
E_ARCHIVE_INVALID_MOVE_OPTIONS | 500 | moveToDisk() was given options it cannot use. |
E_ARCHIVE_MULTIPART_NOT_MACROABLE | 500 | The installed @c9up/ream has no macroable MultipartFile, so uploads cannot be given moveToDisk(). |
E_ARCHIVE_REQUEST_TIMEOUT | 500 | The storage provider did not answer, or stalled while its body was read, within the idle timeout. |
E_ARCHIVE_UNEXPECTED_RESPONSE | 500 | The storage provider answered with something archive cannot use. |
E_ARCHIVE_UNKNOWN_DISK | 500 | A disk name, or the default disk, is not in the config. |
E_ARCHIVE_INVALID_DRIVER | 500 | config.driver is not 'local', 's3' or 'gcs'. |
E_ARCHIVE_CONFIG_MISSING | 500 | The driver is s3 or gcs and its config section is missing. |
E_ARCHIVE_PROVIDER_NOT_REGISTERED | 500 | ArchiveProvider.boot() ran before register(). |
E_ARCHIVE_TEMPLATE_ENGINE | 500 | The app renders with inker, but the template helpers cannot be published on it. |
E_ARCHIVE_REMOTE_FAILED | 500 | S3 or GCS refused a request or reported a failure. The provider's HTTP status is in providerStatus. |
E_ARCHIVE_INVALID_DRIVER_CONFIG | 500 | S3Driver got neither region nor endpoint, GcsDriver lacks bucket or the service account's client_email / private_key, or a local disk's visibility is neither 'public' nor 'private'. |
E_ARCHIVE_CONTENT_LENGTH_EXCEEDED | 500 | putStream() read more bytes than its declared contentLength. |
E_ARCHIVE_INVALID_STATIC_PREFIX | 500 | StaticMiddleware was given an empty prefix. |
E_ARCHIVE_NOT_BOOTED | 500 | The storage service was read before ArchiveProvider booted. |
E_ARCHIVE_INVALID_PREDICATE | 500 | A storage fake assertion got an empty contentContaining, which would match every file. |
E_ARCHIVE_INTERNAL | 500 | An internal invariant of archive broke: a bug in the package. |
E_UNALLOWED_CHARACTERS | 500 | A key holds a control character, a backslash or an encoded separator. |
E_PATH_TRAVERSAL_DETECTED | 500 | A key has a dot-only segment such as .., plain or percent-encoded. |
E_INVALID_KEY | 500 | A key is empty, or only separators, once normalised. |
E_CANNOT_WRITE_FILE | 500 | A disk's put, putStream, copyFromFs or moveFromFs could not write the file; the driver's error is the cause. |
E_CANNOT_READ_FILE | 500 | A disk's get, getBytes, getArrayBuffer or getStream could not read the file, an absent one included (cause: E_ARCHIVE_NOT_FOUND); get answers null for an absent file instead. |
E_CANNOT_DELETE_FILE | 500 | A disk's delete failed; the driver's error is the cause. |
E_CANNOT_DELETE_DIRECTORY | 500 | A disk's deleteAll failed; the driver's error is the cause. |
E_CANNOT_COPY_FILE | 500 | A disk's copy failed, a missing source included; the driver's error is the cause. |
E_CANNOT_MOVE_FILE | 500 | A disk's move failed, a missing source included; the driver's error is the cause. |
E_CANNOT_CHECK_FILE_EXISTENCE | 500 | A disk's exists could not tell; an absent file answers false instead. |
E_CANNOT_GET_METADATA | 500 | A disk's getMetadata / getMetaData or getVisibility failed, an absent file included (cause: E_ARCHIVE_NOT_FOUND). |
E_CANNOT_SET_VISIBILITY | 500 | A disk's setVisibility failed; the driver's error is the cause. |
E_CANNOT_GENERATE_URL | 500 | A disk's url / getUrl, publicUrl, getSignedUrl or getSignedUploadUrl could not build the URL (cause: E_ARCHIVE_SIGNING_DISABLED, E_ARCHIVE_SIGNED_UPLOAD_UNSUPPORTED, E_ARCHIVE_INVALID_EXPIRY, …). |
E_CANNOT_SERVE_FILE | 500 | The archive signed-URL route could not serve a file for a reason other than its absence (which answers 404); the failure is the cause. |
Atlas Errors
Each code is a class of atlas's errors namespace, named like the code. See Atlas error handling for the classes that carry data. The Rust query compiler's and driver's own refusals (E_UNSAFE_*, E_INJECTION_PATTERN, E_UNSUPPORTED…) are rethrown as their class too, with error.code set and the native error as cause.
| Code | HTTP | Description |
|---|---|---|
E_ROW_NOT_FOUND | 404 | A query that must return a row found none: findOrFail, findByOrFail, refresh, fresh, firstOrFail(), sole(). |
E_MASS_ASSIGNMENT | 500 | fill() / merge() (and create, createMany, updateOrCreate) set an attribute outside fillable, or listed in guarded. |
E_EXTRA_PROPERTIES | 500 | A fill named a property that is not a declared column. |
E_UNKNOWN_COLUMN | 500 | A value was assigned to a key that is not a column. Pass { allowExtraProperties: true } to keep unknown keys in $extras. |
E_INVALID_COLUMN | 500 | A query names a column the entity does not declare. |
E_INVALID_FIND_VALUE | 500 | find() was called without a usable primary key value. |
E_MODEL_NOT_PERSISTED | 500 | An operation that needs a stored row (delete(), refresh(), load*()…) ran on a local instance. |
E_MISSING_PRIMARY_KEY | 500 | The same operation ran on a persisted projection that holds no primary key. |
E_MODEL_DELETED | 500 | save() was called on a deleted instance. |
E_MISSING_OWNER_KEY | 500 | associate() was given a parent whose key is not set. |
E_RELATION_NOT_LOADED | 500 | A relation was read before it was loaded. Call .preload() on the query or .load() on the instance. |
E_OPTIMISTIC_LOCK | 500 | A save lost an optimistic lock: another transaction modified the row since it was read. |
E_STRICT_MODE | 500 | Raw SQL refused by strict mode: a repository's raw(), a db.raw() value written by a repository, or whereRaw(), havingRaw(), joinRaw(). |
E_NO_INTERACTIVE_TRANSACTION | 500 | The connection has no interactive transaction() (a model transaction, or useTransaction() in tests). |
E_ARRAY_PARAM | — | A list was bound to a single placeholder. Expand it into one placeholder per element. |
E_ATLAS_MISSING_CONNECTION | 500 | No connection to use at all: no default one (atlas has not booted), a default the config does not declare, or a repository built without a connection. |
E_ATLAS_EMPTY_SELECT | 500 | select() was called with no columns. Provide at least one column name. |
E_ATLAS_INVALID_PAGE | 500 | paginate() was called with page < 1. |
E_ATLAS_INVALID_PER_PAGE | 500 | paginate() was called with perPage < 1. |
E_ATLAS_INVALID_PAGINATION | 500 | A page, page size or row count that is not a finite, non-negative integer. |
E_ATLAS_INVALID_CTE_NAME | 500 | A CTE name must be a valid identifier (letters, numbers, underscores). |
E_ATLAS_INVALID_OPERATOR | 500 | A where() or wherePivot() operator outside the allowed list. |
E_ATLAS_INVALID_INCREMENT | 500 | increment() / decrement() was given an amount that is not a finite number. |
E_ATLAS_UNDEFINED_BINDING | 500 | A query value is undefined. Validate the input first; use whereNull() to match NULL. |
E_ATLAS_DIALECT_MISMATCH | 500 | useTransaction(trx) was given a transaction of another dialect than the query was built for. Start the transaction on the query's connection, or build the query from the transaction. |
E_ATLAS_RAW_BINDINGS | 500 | A raw fragment's placeholders and bindings do not match: a placeholder with no binding, a binding no placeholder uses, ? mixed with $N or with named bindings, or a ?? binding that is not a string. |
E_ATLAS_RAW_VALUE | 500 | A db.raw() was used where it cannot go: defaultTo(db.raw()) with bindings, or a raw value compared with an operator that takes none (IS NULL, BETWEEN). |
E_ATLAS_NON_FINITE_NUMBER | 500 | defaultTo() was given a number that is not a SQL number (NaN, Infinity). |
E_ATLAS_FACTORY_FAKER_MISSING | 500 | A factory uses faker, an optional peer of atlas that is not installed. |
E_ATLAS_FACTORY_INVALID | 500 | make:factory got a model name that would leave the factories folder (a path separator, a quote, a backtick or ..). |
E_ATLAS_SEEDER_INVALID | 500 | make:seeder got a name that would leave the seeders folder (a path separator, a quote, a backtick or ..). |
E_ATLAS_NAPI_NOT_FOUND | 500 | The Rust query compiler is not loaded: the native package for your platform is missing. See Troubleshooting. |
E_ATLAS_INSECURE_SSLMODE | 500 | The connection asks for sslmode=prefer or allow (URL or PGSSLMODE), which fall back to plaintext without saying so. Use disable or verify-full. See Encrypted connections. |
E_ATLAS_LISTEN_UNSUPPORTED | 500 | LISTEN / NOTIFY was used on a connection that is not PostgreSQL. |
E_ATLAS_LISTEN_CONNECT | 500 | The listener could not open its own PostgreSQL connection. |
E_ATLAS_LISTEN_CONNECTION | 500 | The listener's connection failed; every subscription is told. |
E_ATLAS_LISTEN_CHANNEL | 500 | A LISTEN channel name is empty, longer than 63 bytes, or holds a NUL. |
E_ATLAS_LISTEN_CLOSED | 500 | The listener was closed while a request was pending. |
E_ATLAS_LISTEN_EVENT | 500 | The native listener reported an event atlas does not define. |
E_ATLAS_MIGRATION_INVALID_TABLE_NAME | 500 | migrations.tableName is not a plain identifier. |
E_ATLAS_MIGRATION_INVALID | 500 | A migration file does not default-export a class. |
E_ATLAS_MIGRATION_DUPLICATE | 500 | Two migration files share a name. |
E_ATLAS_MIGRATION_COMPILE_EMPTY | 500 | A migration compiled to no SQL statement. |
E_ROLLBACK_DISABLED_IN_PRODUCTION | 500 | A rollback, reset, refresh, fresh or wipe in production without --force. |
E_ATLAS_DRY_RUN_WRITE | 500 | A migration tried to write while running under dryRun(). |
E_DEFER_REQUIRES_TRANSACTION | 500 | A migration uses this.defer() on an adapter without an interactive transaction(). |
E_MYSQL_FK_REQUIRES_TRANSACTION | 500 | Suspending MySQL foreign-key checks needs an interactive transaction() to restore them. |
E_SCHEMA_DUMP_DIALECT_MISMATCH | 500 | The schema dump was made for another dialect. |
E_SCHEMA_DUMP_TABLE_MISMATCH | 500 | The schema dump uses another migrations tracking table. |
E_SEEDER_DIR_NOT_FOUND | 500 | The seeders directory does not exist. |
E_SEEDER_INVALID | 500 | A seeder file does not export a seeder class. |
E_SEEDER_INVALID_PATH | 500 | A seeder path resolves outside the seeders directory. |
E_NO_CONNECTION | 500 | schema.<method>() needs a live connection; it is available inside a migration, not on a standalone Schema. |
E_ALTER_EMPTY | 500 | schema.alterTable() declared no operation. |
E_ALTER_MISUSE | 500 | .alter() does not follow a column definition, or an alter-only method was used on a new table. |
E_CHECK_EMPTY | 500 | A check constraint (or checkBetween) was given no value or interval. |
E_CHECK_RANGE | 500 | checkBetween was given an interval that is not [min, max]. |
E_CONSTRAINT_EMPTY | 500 | A constraint lists no columns. |
E_ENUM_EMPTY | 500 | An enum column declares no values. |
E_EMPTY_VIEW_SELECT | 500 | A view has no SELECT, or a materialized view was asked of a dialect that has none. |
E_SPECIFIC_TYPE_EMPTY | 500 | specificType() was given an empty type. |
E_SQLITE_DECIMAL_PRECISION | 500 | A decimal precision SQLite cannot store exactly. |
E_UNSUPPORTED | 500 | A SQL feature the connection's dialect does not have (DISTINCT ON off Postgres, UNION ALL variants on SQLite, advisory locks on SQLite…). |
E_UNSAFE_IDENTIFIER | 500 | An identifier (table, column, alias) is not a plain SQL name. Atlas checks it before compiling, and the Rust compiler checks it again. |
E_UNSAFE_SQL | 500 | The Rust compiler refused a SQL fragment, or a keyword outside its allowed list (set operation, ORDER BY direction, lock mode, referential action…). |
E_UNSAFE_EXPRESSION | 500 | The Rust compiler refused an expression. |
E_UNSAFE_LITERAL | 500 | The Rust compiler refused a literal value. |
E_INJECTION_PATTERN | 500 | The Rust compiler refused an input that looks like an injection attempt. |
E_ATLAS_NO_URL | 500 | A connection config has no url (or connection), or the database config has neither a top-level url nor connections. |
E_ATLAS_NOT_BOOTED | 500 | The db service (@c9up/atlas/services/db) was used before AtlasProvider.boot() ran. |
E_ATLAS_CONNECTION_UNAVAILABLE | 500 | A container connection token was resolved before boot opened it, or after shutdown closed it. |
E_ATLAS_BOOT_FAILED | 500 | AtlasProvider.boot() could not open one or more configured connections; cause holds the first failure. |
E_ATLAS_READ_ONLY | 500 | A write ran on a query builder scoped to a connection opened with { mode: 'read' }. |
E_ATLAS_INVALID_PRAGMA | 500 | A SQLite pragma key or value is outside [A-Za-z0-9_]. |
E_ATLAS_DB_DRIVER_NOT_FOUND | 500 | The Rust database driver could not be loaded, or the loaded binary is stale; cause holds the load failure. |
E_ATLAS_NO_REPOSITORY | 500 | refresh(), fresh(), load(), loadCount(), loadAggregate() or related() was called on an entity no repository hydrated. |
E_ATLAS_FILLABLE_AND_GUARDED | 500 | A model declares both static fillable and static guarded. |
E_ATLAS_INVALID_ENTITY_CLASS | 500 | A relation's target (or through model) does not resolve to a BaseEntity subclass. |
E_ATLAS_INVALID_HOOK | 500 | A hook decorator is not on a static method, or addHook() was given something other than a function. |
E_ATLAS_INVALID_DECORATOR | 500 | A date column decorator was applied to something other than a class property. |
E_ATLAS_INVALID_RELATION | 500 | Relation metadata lacks what its kind needs: a @ManyToMany without pivot options, a through relation without a through model. |
E_ATLAS_RELATION_UNSUPPORTED_OPERATION | 500 | related() was asked for an operation its relation does not have: a write on @BelongsTo other than associate() / dissociate(), a write on a read-only through relation, a bulk write on @HasOne. |
E_ATLAS_ASSOCIATE_NULL | 500 | associate() was given null or undefined; use dissociate(). |
E_ATLAS_PIVOT_KEY_COLLISION | 500 | attach() / sync() extras name a pivot key column or a pivot timestamp column. |
E_ATLAS_COLUMN_ADAPTER | 500 | A @Column prepare / consume adapter threw (cause holds its error) or returned a Promise. |
E_ATLAS_HAS_ONE_MULTIPLE_ROWS | 500 | A @HasOne preload found more than one related row for a parent. |
E_ATLAS_THROUGH_KEY_NOT_UNIQUE | 500 | A through relation's secondLocalKey maps to several parents. |
E_ATLAS_MULTIPLE_ROWS | 500 | sole() matched more than one row. |
E_ATLAS_SUBQUERY_ALIAS | 500 | select() was given a subquery not named with .as(). |
E_ATLAS_INVALID_ALIAS | 500 | An alias is not a bare identifier. |
E_ATLAS_INVALID_EXPRESSION | 500 | A whereExpr() extra expression holds forbidden characters, unbalanced parentheses, a SQL keyword, or a function outside the allowed list. |
E_ATLAS_INVALID_JSON_PATH | 500 | A whereJsonPath() path does not start with $. |
E_ATLAS_INVALID_GROUP_LIMIT | 500 | groupLimit() was given a value that is not a non-negative integer. |
E_ATLAS_INVALID_LOCK | 500 | skipLocked() / noWait() was used without a base row lock. |
E_ATLAS_INVALID_COMMENT | 500 | comment() text contains */. |
E_ATLAS_INVALID_JOIN | 500 | A string-form join() is missing its right operand. |
E_ATLAS_INVALID_AGGREGATE | 500 | A withAggregate() callback set no aggregate. |
E_ATLAS_INVALID_PLUCK | 500 | pluck() read a column whose value is an object or a relation. |
E_ATLAS_UNKNOWN_SCOPE | 500 | apply() reached a scope the model does not declare, or a model with no static scopes. |
E_ATLAS_CURSOR_ORDER_REQUIRED | 500 | cursorPaginate() was called without an order column. |
E_ATLAS_INVALID_CURSOR | 500 | A cursorPaginate() cursor does not decode, or its tuple length does not match the order columns. |
E_ATLAS_EMPTY_UPDATE | 500 | An update was given an empty payload: a model query's update(), or an UPDATE with no SET assignment that reached the compiler. |
E_ATLAS_QUERY_TIMEOUT | 500 | A query ran longer than its timeout(ms). |
E_ATLAS_COMPILE_EMPTY | 500 | The query compiler returned no statement. |
E_ATLAS_SCHEMA_MISMATCH | 500 | verifySchema() in throw mode found drift between the models and the database; the message lists the findings. |
E_ATLAS_SCHEMA_DUMP_MANIFEST | 500 | A schema-dump manifest (.meta.json) is not version 1 with a schemaTableName. |
E_ATLAS_SCHEMA_DUMP_SEQUENCE | 500 | schema:dump read a sequence parameter from the catalog that is not an integer. |
E_ATLAS_SCHEMA_DUMP_PRUNE | 500 | schema:dump --prune ran without a migrationsDir. |
E_ATLAS_SCHEMA_GENERATE_IDENTIFIER | 500 | schema:generate read a table or column name that does not make a TypeScript identifier. |
E_ATLAS_DB_ASSERTION | 500 | A database assertion (assertHas, assertMissing, assertCount, assertEmpty) does not hold. |
E_ATLAS_FACTORY_NO_CONNECTION | 500 | A factory's create() has no connection: none passed and none bound with .client() / .connection(). |
E_ATLAS_FACTORY_STATE | 500 | A factory state is not defined. |
E_ATLAS_FACTORY_UNKNOWN_RELATION | 500 | A factory's with() names a relation the model does not declare, or one with no related factory. |
E_ATLAS_FACTORY_PIVOT_LENGTH | 500 | A factory's pivotAttributes array length differs from the related-row count. |
E_ATLAS_FACTORY_UNSUPPORTED_RELATION | 500 | A factory's with() names a relation kind it cannot build (a through relation). |
E_ATLAS_SEEDER_DIR_REQUIRED | 500 | testUtils().db().seed() ran without a seedersDir. |
E_ATLAS_INTERNAL | 500 | An invariant inside atlas broke, or the Rust compiler panicked or could not serialize what it compiled: always a bug in atlas itself. |
E_INVALID_DATE_COLUMN_VALUE | 500 | A date column was given a value that is not a valid date: a JavaScript Date, which carries no zone, or a datetime string without an offset. |
E_UNDEFINED_RELATIONSHIP | 500 | A relation name the model does not declare (load(), withCount(), whereHas()…). |
E_UNABLE_ACQUIRE_LOCK | 500 | Another run holds the migration lock. Wait for it, or clear a stale lock with migration:unlock. |
E_UNABLE_RELEASE_LOCK | 500 | A migration run succeeded, but its lock had been cleared under it (migration:unlock during the run), so another run may have migrated at the same time. |
E_MISSING_SCHEMA_FILES | 500 | A migration recorded as applied has no file in the migrations directory, so it cannot be rolled back. |
E_UNMANAGED_DB_CONNECTION | 500 | A connection name that is not registered: a model's static connection, db.connection(name), a factory's connection(name), manager.connect(name). |
E_ATLAS_INVALID_SPEC | 500 | The statement the Rust compiler received is malformed: a clause misses a field, a field has the wrong shape, or the spec does not parse. Atlas builds every spec itself, so this points at an atlas bug or at a spec built by hand. |
E_ATLAS_EMPTY_INSERT | 500 | An INSERT or an upsert has no row (insert([]), multiInsert([])), or has several rows that set no column: only one row can take every column's default. |
E_ATLAS_EMPTY_TABLE | 500 | schema.createTable() declared no column. |
E_UNSUPPORTED_CLIENT | 500 | The connection names a dialect atlas does not know. Atlas compiles for sqlite, postgres (or postgresql) and mysql (or mariadb). |
Atom Errors
| Code | HTTP | Description |
|---|---|---|
E_ATOM_INVALID_INPUT | 500 | A value given as a decimal is not a string, number, bigint or Decimal. |
E_ATOM_INVALID_DECIMAL | 500 | A string or number does not read as a decimal (parseLocale included). |
E_ATOM_UNSAFE_INTEGER | 500 | A JavaScript number is an integer past Number.MAX_SAFE_INTEGER; pass a string or a bigint. |
E_ATOM_INVALID_INTEGER | 500 | Minor units are not a whole number. |
E_ATOM_DECIMAL_TOO_LARGE | 500 | A value or a result is past the maxDigits significant-digit bound, or a scientific literal's exponent is past maxExponent. |
E_ATOM_INVALID_SCALE | 500 | A scale or a precision is not a whole number from 0 to maxScale (10 000 by default). |
E_ATOM_INVALID_EXPONENT | 500 | A pow exponent is not a whole number in range. |
E_ATOM_INVALID_ROUNDING_MODE | 500 | A rounding mode is not one atom knows. |
E_ATOM_INVALID_RANGE | 500 | clamp / between got a minimum greater than the maximum. |
E_ATOM_INVALID_STEP | 500 | A quantize step is not greater than zero. |
E_ATOM_INVALID_RATIOS | 500 | allocate got no ratio, a negative one, or none positive. |
E_ATOM_PRECISION_LOSS | 500 | toMinorUnits (and an exact Money) would lose digits at that scale. |
E_ATOM_LENGTH_MISMATCH | 500 | Decimal.dot got two lists of different lengths. |
E_ATOM_DIVISION_BY_ZERO | 500 | A division or a modulo by zero, on the TypeScript engine (the native engine answers with its own error). |
E_ATOM_NEGATIVE_SQRT | 500 | sqrt of a negative value, on the TypeScript engine (the native engine answers with its own error). |
E_ATOM_EMPTY_INPUT | 500 | avg, min, max, median or stddev got no value. |
E_ATOM_TOO_FEW_VALUES | 500 | A sample stddev got fewer than two values. |
E_ATOM_INVALID_CONTEXT | 500 | configureAtomContext / withAtomContext got a setting that is not valid. |
E_ATOM_INVALID_CURRENCY | 500 | A currency code is not three letters. |
E_ATOM_CURRENCY_MISMATCH | 500 | Two Money values of different currencies or scales were combined. |
E_ATOM_INVALID_COLUMN_VALUE | 500 | The Atlas adapter got a column value of the wrong type. |
E_ATOM_NULL_COLUMN_VALUE | 500 | A non-nullable decimalColumn got null. |
E_ATOM_ENGINE_NOT_FOUND | 500 | nativeAtom() found no native engine (N-API, WASM or the phone's JSI module). |
E_ATOM_NAPI_DISABLED | 500 | nativeAtom() ran while a test disabled the native engine. |
E_ATOM_INTERNAL | 500 | An internal invariant broke (a bug in atom). |
E_ATOM_BULK_NOT_RUN | 500 | A planned value was read before run(). |
E_ATOM_BULK_NO_OUTPUT | 500 | run() got no value to compute. |
E_ATOM_BULK_BAD_OUTPUT | 500 | run() got something that is not a planned value. |
E_ATOM_BULK_LENGTH_MISMATCH | 500 | A plan's columns have different lengths. |
E_ATOM_BULK_EMPTY_COLUMN | 500 | A column has no value. |
E_ATOM_BULK_BAD_INDEX | 500 | at() is outside the column. |
E_ATOM_BULK_BAD_PERCENTILE | 500 | A percentile is not a fraction between 0 and 1. |
E_ATOM_BULK_BAD_EXPONENT | 500 | A planned pow exponent is not a whole number in range. |
E_ATOM_BULK_BAD_PRECISION | 500 | A planned precision is not a whole number from 0 to maxScale (10 000 by default). |
E_ATOM_BULK_BAD_SCALE | 500 | minorUnits() got a scale that is not one. |
E_ATOM_BULK_NOT_MINOR_UNITS | 500 | minorUnits() got a value that is not a whole number of minor units. |
E_ATOM_BULK_TOO_SHORT | 500 | A planned sample standard deviation has fewer than two values. |
E_ATOM_BULK_NO_LENGTH | 500 | A column was built with no source (a bug in atom). |
E_ATOM_BULK_BAD_PROGRAM | 500 | The TypeScript evaluator met a malformed plan (a bug in atom). |
E_ATOM_BULK_LOST_OUTPUT | 500 | A run returned fewer values than it was asked for (a bug in atom). |
E_ATOM_BULK_OVERFLOW | — | Internal: the Rust bulk engine overflowed 128 bits; atom catches it and reruns the program with exact BigInt arithmetic, so it never reaches you. |
E_ATOM_BULK_FOREIGN_COLUMN | 500 | run() / runAsync() got a planned value that reads a column loaded on another Bulk. |
Aurora Errors
| Code | HTTP | Description |
|---|---|---|
E_AURORA_ILLEGAL_PAGE_NAME | 500 | A page name holds characters a page name may not. |
E_AURORA_PAGE_OUTSIDE_ROOT | 500 | The resolved page path lands outside the configured pages root. |
E_AURORA_PAGE_NOT_FOUND | 500 | No file for this page name. |
E_AURORA_PAGE_IMPORT_FAILED | 500 | The page is on disk and its module graph refused to load. |
E_AURORA_PAGE_INVALID_EXPORT | 500 | The page module loaded but does not default-export a factory. |
E_AURORA_ILLEGAL_ROOT_TAG | 500 | renderPage was given a root tag that is not a plain element name. |
E_AURORA_OUTSIDE_COMPONENT | 500 | onMount / onUnmount was called outside a component() setup function. |
E_AURORA_MISSING_CONTEXT | 500 | inject found no provider for the context, and it declared no default. |
E_AURORA_NOT_BOOTED | 500 | The manager singleton was read before a provider or setAurora set it. |
E_AURORA_UNKNOWN_ROUTE | 500 | urlFor was given a name absent from the route manifest. |
E_AURORA_MISSING_ROUTE_PARAMS | 500 | urlFor was given a route whose required params were not all supplied. |
E_AURORA_UNKNOWN_LIVE_COMPONENT | 500 | A live component was mounted before registry.define() named it. |
E_AURORA_LIVE_SESSION_LIMIT | 503 | A live session was refused: the registry holds maxSessions already, and every one is in use (claimed and seen within half of idleTimeoutMs). |
E_AURORA_RELAY_REQUEST_FAILED | 500 | A relay request came back with a non-2xx status. |
E_AURORA_UNSAFE_URL | 500 | A navigation URL failed the same-origin / scheme check. |
E_AURORA_SLOT_IN_TAG_NAME | 500 | A ${} landed where a tag name goes. |
E_AURORA_SLOT_IN_ATTRIBUTE_NAME | 500 | A ${} landed where an attribute name goes. |
E_AURORA_SLOT_IN_RAW_TEXT | 500 | A ${} landed inside <script>, <style>, <textarea>, <title>… |
E_AURORA_SLOT_IN_COMMENT | 500 | A ${} landed inside a comment, a <!…> / <?…> or a CDATA section. |
E_AURORA_SLOT_IN_EVENT_ATTRIBUTE | 500 | A ${} landed in an on* attribute, whose value is JavaScript. |
E_AURORA_SLOT_IN_SRCDOC | 500 | A ${} landed in srcdoc, which an iframe parses as a whole document. |
E_AURORA_SLOT_IN_BASE_URL | 500 | A ${} landed in <base href>, which rebases every URL on the page. |
E_AURORA_SLOT_IN_SCRIPT_SOURCE | 500 | A ${} landed in the URL a <script> loads its code from. |
E_AURORA_SLOT_IN_HTML_PROPERTY | 500 | A .prop binding names a property that parses its value as HTML. |
E_AURORA_TEMPLATE_IN_ATTRIBUTE | 500 | A nested html template reached an attribute value or .value. |
E_AURORA_FILE_INPUT_VALUE | 500 | .value was given a non-empty string on an <input type="file">. |
E_AURORA_DUPLICATE_KEY | 500 | Two elements of an each() list share a key, which names one row. |
E_AURORA_INVALID_LAZY | 500 | each(…, { lazy }) was given an estimate that is not a positive length, or an overscan that is negative or not a number. |
E_AURORA_VISITS_NEED_PHOTON | 500 | visits is on but @c9up/photon is not installed, or too old (0.1.25 and later speak the protocol for aurora). |
E_AURORA_VISIT_PROPS | 500 | With visits on, a page's props (shared ones merged in) were not an object, as the protocol's page.props must be. |
E_AURORA_INVALID_MOTION | 500 | motion=${…} was not an object of motion values, or named a property motion cannot drive (rotation, colour). |
E_AURORA_REACTIVE_CYCLE | 500 | Effects kept re-running each other in one update: one writes what it, or an effect it triggers, reads. |
E_AURORA_INTERNAL | 500 | An invariant inside aurora broke: always a bug in aurora itself. |
E_AURORA_VISIT_NO_PAGE_DATA | 500 | With visits on, the page carries no usable page data script (script[data-aurora-page][type="application/json"]) to boot from. |
E_AURORA_VISIT_ASYNC_FIRST_PAGE | 500 | With visits on, the first page's factory is async: a hydrated page renders synchronously. |
E_AURORA_INVALID_LIVE_LIMIT | 500 | A live registry limit (maxSessions, maxPerOwner, claimTimeoutMs, idleTimeoutMs) is not a positive number. |
E_AURORA_BROWSER_ENTRY_OUTSIDE_DIST | 500 | A browser package declares its entry outside the dist/ aurora serves for it. |
E_AURORA_BROWSER_ENTRY_AT_ROOT | 500 | A browser package has its entry at the package root: serving it would publish the whole package. |
E_AURORA_BROWSER_PACKAGE_CLASH | 500 | Two browser packages would mount on the same asset path. |
E_AURORA_HTTP_REQUEST_FAILED | 500 | An HttpClient request came back with a non-2xx status (the error carries that status). |
E_AURORA_VISIT_CROSS_ORIGIN_MODULE | 500 | With visits on, a page module's URL (the page data's modules pattern, {name} filled in) is not on the page's own origin and scheme, or its path starts with //. Nothing is imported. Serve page modules from your own origin. |
Bay Errors
| Code | HTTP | Description |
|---|---|---|
E_BAY_INVALID_ADAPTER | 500 | An adapter factory did not build a queue driver. |
E_BAY_UNSUPPORTED_DRIVER | 500 | The driver key names a driver; declare it under adapters instead. |
E_BAY_INVALID_BINDING | 500 | The container answers something other than a QueueManager for the QueueManager token. |
E_BAY_QUASAR_MISSING | 500 | A Redis adapter names a quasar connection and @c9up/quasar is not installed, or its manager is not available yet. |
E_BAY_INCOMPLETE_CONNECTION | 500 | The Redis connection lacks a command the driver issues (EVALSHA, SCRIPT LOAD, …). |
E_BAY_UNEXPECTED_REPLY | 500 | A Redis script answered with a reply the driver cannot read. |
E_BAY_INVALID_JOB_OPTIONS | 500 | A job class declares an option it cannot run with; the specific refusal is in cause. |
E_BAY_INVALID_JOB_NAME | 500 | A job's options.name is empty, or make:job is given a name that cannot become a file and a class. |
E_BAY_DUPLICATE_JOB | 500 | Two job classes answer to the same name. |
E_BAY_INVALID_ATTEMPTS | 500 | maxAttempts / maxRetries is not a whole number >= 1, or a backoff is asked for an attempt below 1. |
E_BAY_INVALID_PRIORITY | 500 | A priority is not a whole number from 1 to 10. |
E_BAY_INVALID_RETENTION | 500 | removeOnComplete / removeOnFail is not a boolean or a valid { age?, count? }. |
E_BAY_INVALID_DEDUP | 500 | A dedup has an empty id, a ttl that is not a whole number from 1, or extend without a ttl. |
E_BAY_INVALID_WORKER_OPTIONS | 500 | A worker option is out of range: idleDelay, stalledInterval, concurrency, unknownJobRetries or queues. |
E_BAY_UNSUPPORTED_OPERATION | 500 | The queue driver has no getJob() or sizeOf() for the lookup asked. |
E_BAY_INVALID_JOB_FACTORY | 500 | The job factory built something that is not the job class, or a handler without handle(); the attempt fails with it. |
E_BAY_UNSERIALIZABLE_JOB | 500 | A job record cannot be stored as JSON the way Redis would carry it. |
E_BAY_JOBS_DIRECTORY_UNREADABLE | 500 | A declared jobs directory exists but cannot be read. |
E_BAY_NO_JOBS_FOUND | 500 | Job files were scanned and none yielded a Job subclass. |
E_BAY_DUPLICATE_JOB_ID | 500 | FakeQueue.push() is given a job id it already holds. |
E_JOB_TIMEOUT | 500 | An attempt ran past its timeout; carries job (its name) and timeout (ms). What failOnTimeout looks for. |
E_WORKER_ALREADY_RUNNING | 500 | work() is called while the manager's worker is already running. |
E_INVALID_TIMEOUT | 500 | A job timeout is not 0 or a whole number of milliseconds setTimeout can hold (1 to 2147483647). |
E_CONFIGURATION_ERROR | 500 | bay: config.queue is not what defineConfig returns, declares adapters without a default, its default names an adapter it does not declare, a backoff names an unknown strategy, or a RedisDriver option (visibilityTimeoutMs, maxStalledCount, maxFailedJobs) is out of range. |
E_QUEUE_NOT_INITIALIZED | 500 | The queue is used before BayProvider booted or setQueue() was called (service accessor, Job.dispatch(), queue:work), or ready() ran before boot(). |
E_INVALID_DURATION_EXPRESSION | 500 | A bay duration is neither a non-negative number of milliseconds nor a string like '10s'. The message names the value; help names the option that held it. |
E_BAY_FAKE_JOB_NOT_FOUND | 500 | FakeQueue is asked to complete, fail or retry a job it does not hold. |
E_ADAPTER_INIT_ERROR | 500 | The selected queue adapter's factory threw while building its driver; its error is the cause. |
E_INVALID_BASE_DELAY | 500 | A backoff baseDelay is not above zero. |
E_INVALID_MAX_DELAY | 500 | A backoff maxDelay is not above zero, or not above baseDelay. |
E_INVALID_MULTIPLIER | 500 | A backoff multiplier is not above zero, or is below 1 for the exponential strategy. |
E_JOB_NOT_FOUND | 500 | A job no handler or job class answers to stays unknown past unknownJobRetries; the failed record keeps its message. |
E_JOB_MAX_ATTEMPTS_REACHED | 500 | Handed to a job's failed() hook once its retries ran out; the last attempt's error is the cause. |
E_JOB_STALLED | 500 | The Redis queue driver files a job reclaimed from a dead worker more than maxStalledCount times as failed; the failed record keeps its message. |
Blackhole Errors
| Code | HTTP | Description |
|---|---|---|
E_TOO_MANY_REQUESTS | 429 | Blackhole's global rate limit refused the request (with Retry-After), or a throttle middleware or limiter.consume() found the key over its budget. Wait and retry. |
E_BAD_CSRF_TOKEN | 403 | Invalid or missing CSRF token. Echo the XSRF-TOKEN cookie in the X-XSRF-TOKEN header (or the _csrf form field). |
E_BLACKHOLE_CSRF_ORIGIN_MISMATCH | 403 | A state-changing request came from another origin — another host, or the same host over another scheme — not listed in csrf.trustedOrigins. |
E_BLACKHOLE_PATH_TRAVERSAL | 400 | The path holds .., raw or percent-encoded. |
E_BLACKHOLE_PARAMETER_POLLUTION | 400 | A query-string key appears twice (keys ending in [] may repeat). |
E_BLACKHOLE_MISSING_IP | 400 | Rate limiting is on and the request has no client address to count it under. |
E_BLACKHOLE_SESSION_NOT_READY | 500 | CSRF tokens are bound to the session (csrf.session) and the request reached blackhole without one: register the session middleware before blackhole's. |
E_BLACKHOLE_UNKNOWN_CSP_KEYWORD | 500 | The CSP names an @keyword no resolver is registered for (cspKeywords.register), or a keyword was registered under an invalid name. Raised when the filter is created. |
E_BLACKHOLE_INVALID_CSP_KEYWORD_VALUE | 500 | A CSP keyword's resolver answered a value with ;, , or a line break, which would end the directive. |
E_BLACKHOLE_DATABASE_UNAVAILABLE | 500 | The database limiter store has nothing to count in: @c9up/atlas is not installed, not booted, or the named connection is not one. Pass a client as connection, or set atlas up. |
E_BLACKHOLE_UNSUPPORTED_DATABASE | 500 | The database limiter store was given a database other than PostgreSQL, MySQL or SQLite. |
E_BLACKHOLE_BLOCKED | varies | A refusal whose body the engine did not supply as a JSON error. |
E_BLACKHOLE_INVALID_CSP | 500 | The Content-Security-Policy is invalid: a bad directive name or value, an unquoted keyword, a directive given twice, no default-src, a line break, or both directives and policy. |
E_BLACKHOLE_REMOVED_OPTION | 500 | The config still sets an option that was removed (securityHeaders); the message names its replacement. |
E_BLACKHOLE_UNKNOWN_OPTION | 500 | A header or CORS option names a key it does not have. |
E_BLACKHOLE_INVALID_HEADER_VALUE | 500 | An option's value cannot be written as a header value (empty, or a control or non-ASCII character). |
E_BLACKHOLE_INVALID_XFRAME | 500 | xFrame.action is not DENY, SAMEORIGIN or ALLOW-FROM, or ALLOW-FROM has no domain. |
E_BLACKHOLE_INVALID_CORS | 500 | CORS combines a wildcard origin with credentials: true, or its origin list holds something other than non-empty strings. |
E_BLACKHOLE_INVALID_DURATION | 500 | A duration (HSTS maxAge, a limiter duration) is negative or unreadable. |
E_BLACKHOLE_INVALID_RATE_LIMIT | 500 | A rate limit or limiter is given a request count or duration that is not a positive whole number. |
E_BLACKHOLE_SECRET_MISSING | — | CSRF is enabled and no secret was given. |
E_BLACKHOLE_WEAK_SECRET | 500 | The CSRF secret is the scaffolding placeholder, or shorter than 16 characters. |
E_BLACKHOLE_INVALID_SECRET | 500 | The CSRF secret is neither a string nor a Secret wrapping one. |
E_BLACKHOLE_NAPI_REQUIRED | — | The blackhole native engine is not loaded for this platform; cause carries the load failure. |
E_BLACKHOLE_NOT_REGISTERED | 500 | The middleware ran without a Blackhole instance: BlackholeProvider is not registered, or the host exposes no ctx.containerResolver. |
E_BLACKHOLE_RATE_LIMIT_STORE_MISSING | 500 | checkRateLimit() was called without a configured rateLimit.store. |
E_BLACKHOLE_EMPTY_RATE_LIMIT_KEY | 500 | checkRateLimit() was given an empty key, which would count every request in one bucket. |
E_BLACKHOLE_UNKNOWN_STORE | 500 | A limiter or rateLimit names a store that is not declared in stores. |
E_BLACKHOLE_NO_DEFAULT_STORE | — | rateLimit declares stores but no default naming the one that counts. |
E_BLACKHOLE_LIMITER_OPTIONS_MISSING | 500 | limiter.use() or limiter.multi() was called without the requests and duration of its limiter(s). |
E_BLACKHOLE_INCOMPLETE_THROTTLE | 500 | A throttle middleware ran on a limiter without allowRequests() and every(). |
E_BLACKHOLE_INVALID_TABLE_NAME | 500 | The database limiter store's tableName is not a table name. |
E_BLACKHOLE_QUASAR_MISSING | 500 | A Redis store names a connection and @c9up/quasar is not installed. |
E_BLACKHOLE_INCOMPLETE_CONNECTION | 500 | The named quasar connection lacks the commands the counter issues. |
E_BLACKHOLE_INVALID_XSS_ATTRIBUTE | 500 | xss.allowAttributes names an attribute outside the opt-in list (id, is, slot, part, data-*, class); the native engine refuses it. |
E_BLACKHOLE_UNKNOWN_CHECK | 500 | check() was asked for a check the engine does not have (only rateLimit, shield and csrf exist). |
E_BLACKHOLE_INVALID_HEADERS | 500 | check() was given request headers that are not an object of strings. |
E_BLACKHOLE_INTERNAL_PANIC | 500 | The native engine panicked while checking a request; cause carries the native error. |
E_BLACKHOLE_INVALID_XSS_LIMIT | 500 | xss.maxInputBytes or xss.maxDepth is not a positive whole number. |
E_BLACKHOLE_HTML_TOO_LARGE | 500 | sanitizeResponse() (or the xss pass) was given a text/html body longer than xss.maxInputBytes (1 MiB by default). |
E_BLACKHOLE_HTML_TOO_DEEP | 500 | The HTML to sanitize nests elements deeper than xss.maxDepth (512 by default), measured on the tree the parser builds. |
E_BLACKHOLE_HTML_TOO_COMPLEX | 500 | The HTML to sanitize builds more than four times its size plus 64 KiB (misnested formatting tags re-created in every block). |
Chronos Errors
Every refusal, from the TypeScript side or from the Rust engine, carries its code in error.code.
| Code | HTTP | Description |
|---|---|---|
E_CHRONOS_INVALID_YEAR | 500 | easterDate / holidays got a year that is not an integer in 1583-9999 (the Gregorian computus). |
E_CHRONOS_UNKNOWN_COUNTRY | 500 | holidays / isHoliday got a country with no holiday calendar (known: CH, FR). |
E_CHRONOS_UNKNOWN_REGION | 500 | The region is not a Swiss canton's two-letter code, or a region was given for FR. |
E_CHRONOS_INVALID_DATE | 500 | A date that does not exist: isHoliday got a string that is not a calendar date YYYY-MM-DD, or a DateTime was built from an invalid JavaScript Date. |
E_CHRONOS_ENGINE_REQUIRED | — | The Chronos engine (the NAPI binary in Node, the WASM build in a browser) did not load. |
E_CHRONOS_INVALID_ARGUMENT | 500 | An argument has the wrong type (fromMillis("12"), fromFormat without a string, expandRRule(rule, options) without the rule text), or toRelative got an unknown rounding. |
E_CHRONOS_OUT_OF_RANGE | 500 | A value or a plus/minus result falls outside years 0000-9999. |
E_CHRONOS_CONFLICTING_FIELDS | 500 | A format mixes fields that contradict each other: a meridiem with a 24-hour hour, week fields with year/month/day, an ordinal with month/day. |
E_CHRONOS_UNSUPPORTED_UNIT | 500 | A unit chronos does not know (fortnight) was given to plus, diff, toRelative, Duration or an Interval method. |
E_CHRONOS_MISSING_UNIT | 500 | plus(amount) / minus(amount) without a unit, or diff / toRelative with an empty unit list. |
E_CHRONOS_INVALID_UNIT_VALUE | 500 | A unit amount is not a finite number (NaN, Infinity, a string). |
E_CHRONOS_INVALID_DURATION | 500 | A duration that cannot be read or used: an ISO 8601 duration that does not parse, a value that is not an object of units, a non-positive splitBy step. |
E_CHRONOS_INVALID_INTERVAL | 500 | An Interval whose start is after its end, or an ISO 8601 interval that does not parse. |
E_CHRONOS_INVALID_RANGE | 500 | A DateRange given to inRange, containsRange, overlapsRange or analyzeRange starts after it ends. |
E_CHRONOS_INVALID_LOCALE | 500 | setLocale got a tag Intl does not accept. |
E_CHRONOS_INVALID_RRULE | 500 | toRRuleString (or expandRRule with a structured rule) got a field it cannot write into the rule text. |
E_CHRONOS_INVALID_RRULE_LIMIT | 500 | The expandRRule limit is not a positive integer. |
E_CHRONOS_RRULE_LIMIT_EXCEEDED | 500 | The expandRRule limit is above the 10,000 cap. |
E_CHRONOS_INVALID_COLUMN_VALUE | 500 | The atlas DateTime column adapter read a database value of an unexpected type, or was asked to store something other than a DateTime. |
E_CHRONOS_INTERNAL | 500 | The engine answered something chronos does not expect (a bug in chronos, not in your code). |
E_CHRONOS_UNKNOWN_ZONE | 500 | A zone the tz database does not know: new DateTime(input, zone), DateTime.now(zone), setZone, fromSQL, the tzid of expandRRule or a TZID in its text. |
E_CHRONOS_UNREADABLE_RRULE | 500 | expandRRule got rule text the engine cannot read or expand: an unknown or repeated property, a value out of range, no start, a rule over the size limit. |
Comet Errors
Raised by the WebSocket transport (createWebSocketTransport()), with one of the codes below: the call failed without a JSON-RPC answer. A JSON-RPC error the server answered keeps its numeric code.
| Code | HTTP | Description |
|---|---|---|
E_COMET_CONNECTION_FAILED | 500 | The socket could not be opened: refused handshake, bad URL or network. |
E_COMET_CONNECTION_CLOSED | 500 | The socket closed while the call waited, or stays closed (reconnect: false). |
E_COMET_TRANSPORT_CLOSED | 500 | close() was called on the transport; calls made afterwards fail the same way. |
E_COMET_TIMEOUT | 500 | No answer within the timeout. |
E_COMET_MESSAGE_TOO_LARGE | 500 | A message over maxMessageBytes, sent or received. |
E_COMET_BACKPRESSURE | 500 | More than maxBufferedBytes already wait to be sent. |
E_COMET_PROTOCOL_ERROR | 500 | The peer sent what no JSON-RPC server answers, so the socket was closed. |
E_COMET_INVALID_MESSAGE | 500 | The client handed over something that is not a JSON-RPC message, or not JSON. |
E_COMET_INVALID_OPTION | 500 | createWebSocketTransport() was given a timeout, maxMessageBytes or maxBufferedBytes that is not a positive number, or a timeout past what a timer can wait. |
Echo Errors
E_FACTORY_ERROR, E_FACTORY_HARD_TIMEOUT, E_UNDEFINED_VALUE and E_L2_CACHE_ERROR keep the identifiers cache code already catches on.
| Code | HTTP | Description |
|---|---|---|
E_FACTORY_ERROR | 500 | The factory of getOrSet() threw; cause holds its error. |
E_FACTORY_HARD_TIMEOUT | 500 | The factory did not finish within its hard timeout. |
E_UNDEFINED_VALUE | 500 | A null or undefined value was written to the cache. |
E_L2_CACHE_ERROR | 500 | A tiered store's second level failed and the failure is not suppressed. |
E_ECHO_LOCK_TIMEOUT | 500 | A caller waited too long for another caller's factory of the same key. |
E_ECHO_INVALID_ARGUMENT | 500 | A method was given an argument it cannot work with. |
E_ECHO_INVALID_DURATION | 500 | A duration is neither a number of milliseconds nor a readable string. |
E_ECHO_INVALID_CONFIG | 500 | A config value cannot be read, such as a size that is not bytes or '10mb', or a Redis connection's keyPrefix is not a string when clear() needs it. |
E_ECHO_UNKNOWN_STORE | 500 | A store name, or the default store, is not declared in stores. |
E_ECHO_UNSUPPORTED_DRIVER | — | The default provider was given a driver it does not build. |
E_ECHO_NOT_TAGGABLE | 500 | Tag invalidation on a driver (or a tier) that has no tags. |
E_ECHO_SCAN_UNSUPPORTED | — | flush() on a Redis client, or on a cluster master, without scan(); KEYS is not used. |
E_ECHO_UNSERIALIZABLE_VALUE | — | The memory driver stores JSON and the value has no JSON form. Pass serialize: false to keep it as is. |
E_ECHO_QUASAR_MISSING | 500 | A Redis store was configured and @c9up/quasar is not installed. |
E_ECHO_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks what echo needs (publish() / subscribe()). |
E_ECHO_NOT_BOOTED | — | The cache singleton was used before EchoProvider.boot() or setCache(). |
E_ECHO_BUS_SUBSCRIBE_FAILED | 500 | The quasar cache bus reported a subscribe failure that is not an Error; cause holds what it reported. |
E_FACTORY_SOFT_TIMEOUT | 500 | Not raised by echo: at the soft timeout the stale value is served. Exported on errors for code that tests it. |
Eclipse Errors
E_LOCK_NOT_OWNED and E_LOCK_STORAGE_ERROR keep the identifiers lock code already catches on.
| Code | HTTP | Description |
|---|---|---|
E_LOCK_NOT_OWNED | 500 | The lock is not held by this holder: it expired, or another holder has it. Raised when work succeeded but the lease lapsed while it ran. |
E_LOCK_STORAGE_ERROR | 500 | The lock store failed while saving, reading or deleting. |
E_ECLIPSE_INVALID_TTL | 500 | A lock TTL is not a finite positive number of milliseconds, or null. |
E_ECLIPSE_INVALID_DURATION | 500 | A duration string cannot be read. |
E_ECLIPSE_INVALID_RETRY | 500 | A retry option is out of range. |
E_ECLIPSE_INVALID_CONFIG | 500 | The lock config is invalid. |
E_ECLIPSE_MISSING_CONFIG | 500 | config/lock.ts is missing. |
E_ECLIPSE_UNKNOWN_STORE | 500 | A lock store name is not declared. |
E_ECLIPSE_QUASAR_MISSING | 500 | A Redis store was configured and @c9up/quasar is not installed. |
E_ECLIPSE_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks what eclipse needs. |
E_ECLIPSE_DATABASE_UNAVAILABLE | 500 | A database lock store asks for atlas, which is not installed or has not booted. |
E_ECLIPSE_UNSUPPORTED_DATABASE | 500 | A database lock store was given a dialect other than PostgreSQL, MySQL or SQLite. |
E_ECLIPSE_NOT_BOOTED | 500 | The lock manager singleton was used before EclipseProvider.boot() or setLocks(). |
E_ECLIPSE_INVALID_BINDING | 500 | The container resolved the LockManager token to something that is not a LockManager. |
Eon Errors
Every refusal, the query compiler's included, carries its code in error.code. TDengine's own numeric error code is in taosCode.
| Code | HTTP | Description |
|---|---|---|
E_EON_MISSING_CONNECTION | 500 | A repository has no connection to run on. |
E_EON_NOT_A_SUPERTABLE | 500 | A class used as a super-table is not decorated with @SuperTable. |
E_EON_NO_TAGS | 500 | A super-table has no @Tag column, so a child table cannot be routed. |
E_EON_NO_TIMESTAMP | 500 | A super-table has no @Timestamp column. |
E_EON_CHILD_STABLE | 500 | createChildTable() was given neither stable nor EntityClass. |
E_EON_CHILD_COLLISION | 500 | Two distinct tag sets map to the same child table; eon refuses to write mismatched rows under one tag set. |
E_EON_CHILD_MIGRATION | 500 | migrateChildTableNames() read a child listing row without a table name. |
E_EON_BATCH_SIZE | 500 | batchSize is not a positive integer. |
E_EON_BIND | 500 | A value cannot be written to its STMT placeholder as given: the wrong type, or a decimal the column cannot hold exactly. |
E_EON_SERVER_VERSION | 500 | The columnar STMT path needs TDengine 3.3.6.0 or later (stmt2). |
E_EON_TYPE | 500 | A column or tag has an unknown or missing type. |
E_EON_TS_TYPE | 500 | A timestamp is neither a bigint nor a safe-integer number. |
E_EON_PARAM_PRECISION | 500 | A timestamp number is not a safe integer; pass nanosecond timestamps as bigint. |
E_EON_VALUE_TYPE | 500 | An integer column was given something other than a safe integer or a bigint. |
E_EON_VALUE_RANGE | 500 | A value is outside its column type's range; the connector would truncate it silently. |
E_EON_TEMPLATE | 500 | The compiler returned no statement for the STMT insert template. |
E_EON_LITERAL_INSERT | 500 | A literal insert for one child table compiled to other than exactly one statement. |
E_EON_HYDRATE_BIGINT | 500 | A bigint or timestamp column came back with a non-integer value. |
E_EON_DECODE | 500 | A server reply or result block does not match the protocol (truncated, unknown type, rows without column metadata); a frame that cannot be trusted closes the connection. |
E_EON_TIMEOUT | 500 | A request to TDengine got no reply within timeoutMs. |
E_EON_CLOSED | 500 | The TDengine connection closed while a request was waiting, or a request was sent on a closed one. |
E_EON_CONNECT | 500 | The WebSocket to taosAdapter could not be opened: a bad URL, a refused connection, or no handshake within the deadline. |
E_EON_SCHEMALESS_SCHEMA | 500 | A field type has no line-protocol form. |
E_EON_SCHEMALESS_FIELD | 500 | A line-protocol field value is outside its type's range. |
E_EON_SCHEMALESS_TAG | 500 | A line-protocol tag value cannot be written. |
E_EON_SCHEMALESS_EMPTY_TAG | 500 | A line-protocol tag value is empty. |
E_EON_SCHEMALESS_NO_FIELDS | 500 | A line-protocol point has no field. |
E_EON_SCHEMALESS_MEASUREMENT | 500 | The super-table (measurement) name is empty. |
E_EON_SCHEMALESS_CONTROL_CHAR | 500 | A line-protocol name or value holds a line terminator or control character; it is refused, not escaped. |
E_EON_INVALID_VALUE | 500 | where() with one argument takes a callback that fills a group. |
E_EON_EMPTY_WHERE_GROUP | 500 | A where(callback) group added no predicate. |
E_EON_INVALID_LIMIT | 500 | limit() was given a value that is not a non-negative integer. |
E_EON_INVALID_OFFSET | 500 | offset() was given a value that is not a non-negative integer. |
E_EON_COMPILE_EMPTY | 500 | The compiler returned no SQL statement. |
E_EON_UNEXPECTED_PARAMS | 500 | A time-series query compiled with bound parameters where literal SQL is expected. |
E_EON_INTERNAL | 500 | An invariant inside eon broke, or the Rust compiler panicked or could not serialize what it compiled: always a bug in eon itself. |
E_EON_ALTER_DB_ONE_OPTION | 500 | alterDatabase() takes exactly one option. |
E_EON_MIGRATION_INVALID | 500 | The migrations tracking table holds an unreadable executed_at. |
E_EON_MIGRATION_LOCKED | 500 | Another run holds the migration lock. |
E_EON_FACTORY_STATE | 500 | A factory state is not defined. |
E_EON_FAKE_UNSUPPORTED | 500 | FakeEonConnection answers only flat SELECTs; windowed or aggregate SQL needs a live TDengine. |
E_EON_TEST_IDENTIFIER | 500 | A test cleanup helper was given a name that is not a plain identifier. |
E_EON_NAPI_NOT_FOUND | 500 | The eon query compiler binary is not found. |
E_EON_NAPI_UNSUPPORTED | 500 | There is no eon query compiler binary for this platform. |
E_EON_INVALID_DURATION | 500 | A duration is not a positive integer followed by one unit. |
E_EON_INVALID_FILL | 500 | A FILL mode is not one TDengine knows, or lacks its value. |
E_EON_FILL_REQUIRES_INTERVAL | 500 | FILL was used without INTERVAL. |
E_EON_SLIDING_REQUIRES_INTERVAL | 500 | SLIDING was used without INTERVAL. |
E_EON_OFFSET_REQUIRES_LIMIT | 500 | OFFSET was used without LIMIT. |
E_EON_INVALID_ORDER_DIRECTION | 500 | An order direction is neither asc nor desc. |
E_EON_INVALID_PSEUDO_COLUMN | 500 | A pseudo-column is not one eon allows. |
E_EON_INVALID_SELECT | 500 | A select expression cannot be compiled. |
E_EON_INVALID_SELECT_FUNCTION | 500 | A select names a function eon does not allow. |
E_EON_INVALID_DB_OPTION | 500 | A database option value is invalid. |
E_EON_UNKNOWN_DB_OPTION | 500 | A database option is not alterable (KEEP, BUFFER, WAL_LEVEL, CACHEMODEL, REPLICA, MINROWS). |
E_EON_IMMUTABLE_DB_OPTION | 500 | A database option is fixed at CREATE and cannot be altered. |
E_EON_INVALID_TTL | 500 | A child-table TTL is not a non-negative whole number of days. |
E_EON_INVALID_WAL_LEVEL | 500 | A WAL_LEVEL is not one TDengine accepts. |
E_EON_INVALID_CACHEMODEL | 500 | A CACHEMODEL is not one TDengine accepts. |
E_EON_INVALID_PRECISION | 500 | A database precision is not ms, us or ns. |
E_EON_KEEP_TOO_SMALL | 500 | KEEP is less than three times DURATION. |
E_TS_REQUIRED | 500 | A super-table's first column is not a TIMESTAMP. |
E_TAGS_REQUIRED | 500 | A super-table declares no tag, or an INSERT that auto-creates a child table (using), or its STMT template, has no tag. |
E_JSON_TAG_RULE | 500 | JSON is tag-only and must be the only tag. |
E_TYPE_NOT_TAGGABLE | 500 | A type that cannot be a tag (DECIMAL) is used as one. |
E_LENGTH_REQUIRED | 500 | A type that needs a length (BINARY(n), NCHAR(n)…) was given none. |
E_NAME_COLLISION | 500 | A name is listed more than once across the STMT template's tag and value columns. |
E_INVALID_CLAUSE_TYPE | 500 | A WHERE connector is neither and nor or. |
E_INVALID_WHERE_GROUP | 500 | A WHERE group is empty, or also names a column. |
E_INVALID_WHERE_VALUE | 500 | A WHERE value (or list element) is not a scalar, or an IN value is not a list. |
E_UNSAFE_IDENTIFIER | 500 | The compiler refused an identifier. |
E_UNSAFE_LITERAL | 500 | The compiler refused a literal value. |
E_UNSAFE_OPERATOR | 500 | The compiler refused an operator. |
E_EON_NOT_BOOTED | 500 | An eon connection (the eon token, eon:<name>, or @c9up/eon/services/connection) was used before EonProvider.boot() opened it. |
E_EON_ALREADY_BOOTED | 500 | EonProvider.boot() ran a second time while its connections are open; call shutdown() first. |
E_EON_BOOT_FAILED | 500 | EonProvider.boot() could not open one or more configured connections; cause holds the first failure. |
E_EON_UNKNOWN_CONNECTION | 500 | The default connection named in config/timeseries.ts is not among its connections. |
E_EON_NO_DATABASE | 500 | createDatabase is set but no database is configured. |
E_EON_TEST_URL | 500 | connectTestEon() was called without EON_TEST_URL. |
E_EON_SERVER_ERROR | 500 | The TDengine server refused a request (a bad statement, a missing table, bad credentials); taosCode holds TDengine's numeric error code. |
E_EON_NO_TOPIC | 500 | subscribe() was given no topic; the server would accept it and deliver nothing. |
E_EON_SEEK_NO_OFFSET | 500 | seek() was given a partition without an offset. |
E_EON_INVALID_INSERT | 500 | An INSERT reached the compiler with no column, no row, a row whose width differs from the column list, or tags without using. |
E_EON_ALTER_EMPTY | 500 | An ALTER STABLE reached the compiler with no change. |
E_UNSUPPORTED_CLIENT | 500 | The compiler was asked for a dialect other than tdengine. |
E_EON_INVALID_SPEC | 500 | The statement the compiler received does not parse. Eon builds every spec itself, so this points at an eon bug or at a spec built by hand. |
Ephemeris Errors
| Code | HTTP | Description |
|---|---|---|
E_EPHEMERIS_INVALID_NODE | 500 | A structured-data node has no @type. |
E_EPHEMERIS_INVALID_URL | 500 | A URL is not absolute. |
E_EPHEMERIS_INVALID_DATE | 500 | A date is not ISO 8601. |
E_EPHEMERIS_INVALID_VALUE | 500 | A value cannot be serialised (an invalid Date…). |
E_EPHEMERIS_INVALID_PRICE | 500 | A price is neither a number nor digits with a decimal point. |
E_EPHEMERIS_INVALID_CURRENCY | 500 | A currency is not an ISO 4217 code. |
E_EPHEMERIS_MISSING_REQUIRED | 500 | A type lacks a property search engines require for it. |
E_EPHEMERIS_UNSAFE_KEY | 500 | A key structured data may not use (such as __proto__). |
E_EPHEMERIS_ID_TAKEN | 500 | An @id generated for one node was given to another. |
E_EPHEMERIS_SLOT_TAKEN | 500 | A node slot is already taken by another node. |
E_EPHEMERIS_CYCLE | 500 | A node contains itself. |
E_EPHEMERIS_TOO_DEEP | 500 | The data is nested deeper than the allowed depth. |
E_EPHEMERIS_TOO_LONG | 500 | A text value is longer than the allowed length. |
E_EPHEMERIS_TOO_MANY | 500 | A list (a breadcrumb…) has more items than allowed. |
Flare Errors
| Code | HTTP | Description |
|---|---|---|
E_RUNTIME_EXCEPTION | 500 | RuntimeException: a failure at run time that no more specific error describes. |
E_INVALID_ARGUMENTS_EXCEPTION | 500 | InvalidArgumentsException: a function received arguments it cannot work with. |
Goldstone Errors
The mail engine's limits are refused before the message is parsed further.
| Code | HTTP | Description |
|---|---|---|
E_GOLDSTONE_MESSAGE_TOO_LARGE | 422 | A message is over the size limit; refused before download when the server announces its size. |
E_GOLDSTONE_NOT_A_MESSAGE | 422 | The bytes are not a mail message. |
E_GOLDSTONE_TOO_MANY_PARTS | 422 | A message has more MIME parts than allowed. |
E_GOLDSTONE_TOO_DEEP | 422 | MIME parts are nested deeper than allowed. |
E_GOLDSTONE_TOO_MANY_HEADERS | 422 | A message has more headers than allowed. |
E_GOLDSTONE_HEADERS_TOO_LARGE | 422 | A header block is over maxHeaderBytes, or the header blocks of a message's parts are over maxPartHeaderBytes together. |
E_GOLDSTONE_MISSING_BOUNDARIES | 422 | A multipart message declares boundaries that never appear. |
E_GOLDSTONE_BOUNDARY_TOO_LONG | 422 | A multipart boundary is longer than allowed. |
E_GOLDSTONE_TOO_MANY_ATTACHMENTS | 422 | A message has more attachments than allowed. |
E_GOLDSTONE_ATTACHMENT_TOO_LARGE | 422 | An attachment is over the size limit. |
E_GOLDSTONE_HTML_TOO_LARGE | 422 | An HTML body is over the size limit. |
E_GOLDSTONE_HTML_TOO_DEEP | 422 | An HTML body nests more than 1000 elements deep, measured on the tree the HTML parser builds. |
E_GOLDSTONE_HTML_TOO_COMPLEX | 422 | An HTML body builds a tree out of proportion to its markup: too many nodes, or too much work to place them. |
E_GOLDSTONE_DNS_UNAVAILABLE | 500 | An authenticity check needed DNS and DNS failed. |
E_GOLDSTONE_INVALID_ENVELOPE | 500 | The envelope given to an authenticity check is invalid (an address that is not an IP…). |
E_GOLDSTONE_ENGINE | 500 | The engine failed without one of the codes above. |
E_GOLDSTONE_NATIVE_REQUIRED | 500 | The Rust mail engine is not loaded. |
E_GOLDSTONE_INVALID_LIMITS | 500 | A parsing limit is not a positive integer under 2^32. |
E_GOLDSTONE_INVALID_OPTIONS | 500 | An authenticity check option is not a positive integer under 2^32. |
E_GOLDSTONE_INVALID_CONFIG | 500 | The inbox config is invalid (no mailbox declared…). |
E_GOLDSTONE_INSECURE_CONNECTION | 500 | A mailbox would connect without TLS. Set starttls: true, or allowInsecure for a local test server. |
E_GOLDSTONE_UNKNOWN_MAILBOX | 500 | A mailbox name is not configured. |
E_GOLDSTONE_UIDVALIDITY_CHANGED | 500 | A watched folder renumbered its messages; watching resumes from the newest. |
E_GOLDSTONE_MISSING_CONFIG | 500 | GoldstoneProvider registered with no config/inbox.ts. |
E_GOLDSTONE_NOT_BOOTED | 500 | The services/main inbox was used before GoldstoneProvider registered or setInbox() was called. |
E_GOLDSTONE_TOO_MANY_ADDRESSES | 422 | A message's address headers hold more addresses than maxAddresses, counted before the message is parsed. |
Helix Errors
| Code | HTTP | Description |
|---|---|---|
E_HELIX_ASSERTION_FAILED | 500 | An expect() or assert check failed (AssertionError). |
E_HELIX_TIMEOUT | 500 | A test or hook did not settle within its timeout. Also the code of a file error when the file exceeds --file-timeout. |
E_HELIX_TEST_ABORTED | 500 | The running test called meta.abort(message). |
E_HELIX_NO_ACTIVE_TEST | 500 | A test-only helper (getActiveTestOrFail(), time.freeze/travel, override(), a test.macro function) was called outside a running test. |
E_HELIX_NO_ACTIVE_CONTAINER | 500 | override() was called before useContainer(). |
E_HELIX_ASYNC_DESCRIBE | 500 | A describe body returned a Promise; await the setup in beforeAll instead. |
E_HELIX_NESTED_GROUP | 500 | A test.group() was declared inside another group. |
E_HELIX_INVALID_TIME | 500 | A time value cannot be used: a non-finite or out-of-range epoch, an unreadable date, a fractional month or year, an unknown unit, or a negative advanceTimersByTime. |
E_HELIX_FAKE_TIMERS_NOT_INSTALLED | 500 | A vi timer control was called before vi.useFakeTimers(). |
E_HELIX_TIMER_LOOP | 500 | Draining fake timers exceeded its iteration cap: a timer keeps rescheduling itself. |
E_HELIX_SPY_NO_PROPERTY | 500 | vi.spyOn() targets a property the object does not have. |
E_HELIX_SPY_NOT_FUNCTION | 500 | vi.spyOn() targets a value that is not a function; pass { accessor } for a getter or setter. |
E_HELIX_SPY_NO_ACCESSOR | 500 | vi.spyOn() asked for a getter or setter the property does not define. |
E_HELIX_ALREADY_SPIED | 500 | vi.spyOn() targets a method that is already a spy; call mockRestore() first. |
E_HELIX_RUNNER_NOT_DRIVABLE | 500 | A plugin called runner.add/start/exec/end(): the CLI owns discovery and execution. |
E_HELIX_RELATIVE_PATH | 500 | runTestFile() was given a relative path. |
E_HELIX_INVALID_GLOB | 500 | An include or exclude glob has an unclosed {, ( or [; cause holds the regex error. |
E_HELIX_INVALID_THREADS | 500 | The thread count is not a finite number. |
E_HELIX_INVALID_COVERAGE_THRESHOLD | 500 | A coverage threshold is not a number from 0 to 100, or a diff-coverage threshold names functions or branches (diff coverage is line-only). |
E_HELIX_INVALID_DIFF_COVERAGE | 500 | Diff coverage is enabled without coverage, or its cwd and coverage.root are disjoint. |
E_HELIX_INVALID_WATCH_OPTIONS | 500 | Watch mode got an empty include or a debounceMs out of range. |
E_HELIX_WATCH_FAILED | 500 | Watch mode could not watch its root directory; cause holds the fs.watch error. |
E_HELIX_NATIVE_REQUIRED | 500 | The helix native binary is missing, failed to load, or is stale, or the platform has none. |
E_HELIX_INTERNAL | 500 | An internal invariant of helix broke: a bug in helix, worth reporting. The native engine's refusals arrive under this code. |
E_HELIX_WORKER_FAILED | 500 | Not thrown: the code of a file error when the worker could not start, sent a broken frame, exited without a result, or exited in a way its result does not explain. |
E_HELIX_UNEXPECTED_ONLY | 500 | Not thrown: the code of the error of a test that a .only or a .pin() selects in a run that does not allow them (under CI, or with --allow-only=false). |
E_HELIX_NO_TEST_SUITE | 500 | The code of the file error for a file that declares no test, unless --pass-with-no-tests is set. |
Helix Plugin Errors
Raised by @c9up/helix-plugin-ream.
| Code | HTTP | Description |
|---|---|---|
E_HELIX_PLUGIN_REAM_UNKNOWN_SUITE | 500 | A suite name was asked for but the rc file does not declare it. |
E_HELIX_PLUGIN_REAM_SUITE_CONFIGURE_UNREACHABLE | 500 | A suite declares configure and the runner has no module path to re-import it in each worker. |
E_HELIX_PLUGIN_REAM_NO_SERVER | — | apiClient() was given neither testUtils nor boot. |
E_HELIX_PLUGIN_REAM_SERVER_NOT_STARTED | — | No server is running for the suite. Add the hook that starts it. |
E_HELIX_PLUGIN_REAM_NO_TEST_CLIENT | — | No client is in play. Add apiClient() to the plugins in tests/bootstrap.ts. |
Inker Errors
| Code | HTTP | Description |
|---|---|---|
E_INKER_TEMPLATE_NOT_FOUND | 500 | No template has this name. |
E_INKER_PARSE_ERROR | — | The template cannot be parsed. |
E_INKER_UNKNOWN_IDENTIFIER | — | An expression names an identifier that is not in scope. |
E_INKER_INVALID_PATH | 500 | A template path is invalid (traversal, absolute path…). |
E_INKER_UNCLOSED_INTERPOLATION | — | A {{ has no matching }}. |
E_INKER_UNCLOSED_BLOCK_TAG | — | A block tag is not closed. |
E_INKER_UNCLOSED_BLOCK | — | A block has no @end. |
E_INKER_UNMATCHED_BLOCK_END | — | An @end closes no block. |
E_INKER_MISMATCHED_BLOCK_END | — | An @end closes another block than the open one. |
E_INKER_UNKNOWN_DIRECTIVE | — | A directive the engine does not know. |
E_INKER_UNKNOWN_TAG | — | No tag is registered under this name. Register it with templates.registerTag(). |
E_INKER_INVALID_LAYOUT_POSITION | — | @layout is not the first statement of the template. |
E_INKER_DUPLICATE_LAYOUT | — | A template declares more than one layout. |
E_INKER_NESTED_LAYOUT_UNSUPPORTED | — | A layout extends another layout. |
E_INKER_LAYOUT_IN_PARTIAL | — | A partial declares a layout. |
E_INKER_CIRCULAR_INCLUDE | — | Templates include each other in a loop. |
E_INKER_MISSING_SLOT | — | A component requires a slot the caller did not fill. |
E_INKER_UNKNOWN_SLOT | — | The caller fills a slot the component does not declare. |
E_INKER_DISK_REQUIRED | — | A template rendered from a string (renderString, renderRaw) uses @layout, @include, @component or {{> name }}, which need template files: render it by name with render(name, data). |
E_INKER_DISK_COLLISION | 500 | Two disks are mounted under the same name. |
E_INKER_TEMPLATE_COLLISION | 500 | Two templates are registered under the same name. |
E_INKER_INVALID_EXPRESSION | 500 | An expression cannot be evaluated. |
E_INKER_INVALID_ITERABLE | — | @each was given something that is not iterable. |
E_INKER_HELPER_THROW | 500 | A helper threw during the render. |
E_INKER_ASYNC_NOT_SUPPORTED | — | A construct that renders synchronously used await. |
E_INKER_RENDER_DEPTH | — | The render nested too deep. |
E_INKER_DUMP_DIE | — | @dd() stopped the render and printed its value. |
E_INKER_INVALID_JSON_LD | 500 | A value given to the JSON-LD helper cannot be held in JSON-LD. |
E_INKER_TEMPLATE_ERROR | — | A template raised an error itself. |
E_INKER_ENGINE_MISSING | 500 | A template was rendered through the inker singleton before InkerProvider built the engine. |
E_INKER_NAPI_REQUIRED | 500 | The native inker engine is missing or cannot be loaded; the message names the platform package to install. |
E_INKER_NOT_BOOTED | 500 | The renderer (@c9up/inker/services/main, or the container's InkerRenderer) was used before InkerProvider.start() ran or setInker() seated one. |
E_INKER_INVALID_CONFIG | 500 | config.inker holds a value the provider cannot use: a cacheMode other than mtime, never or auto, or an additionalHelpers entry that is not a function. |
E_INKER_INVALID_HELPER_ARGUMENT | 500 | A view helper (t, url, route, signedRoute, config, formAttributes, asset) got an argument it cannot use: a name or key that is not a string, or route params that are not a plain object of finite, non-null primitives. |
E_INKER_OUTSIDE_RENDER | 500 | A helper that reads the request was called outside inker.render(). |
Lumen Errors
| Code | HTTP | Description |
|---|---|---|
E_LUMEN_INVALID_COLUMN | 500 | A table was asked for a column shape it does not have. |
E_LUMEN_TASK_NO_RESULT | 500 | A task callback returned nothing and did not mark the task itself. Found on the outcome's error, not thrown. |
E_LUMEN_TASK_FAILED | 500 | A task failed with something that is not an Error (a string, a thrown value, a returned { message, isError: true }); cause holds the original value. |
E_LUMEN_INTERNAL | 500 | An invariant inside lumen broke; a bug to report. |
Nebula Errors
| Code | HTTP | Description |
|---|---|---|
E_NEBULA_INVALID_CONFIG | 500 | config/nebula.ts has no default export, or a paths / language entry of the wrong shape. |
E_NEBULA_SOURCES_NOT_BUILT | 500 | nebula add was asked for a language whose sources the package has not built (dist/ for JavaScript). |
E_NEBULA_INVALID_REGISTRY | 500 | The installed package's registry.json is not a nebula registry. |
E_NEBULA_UNKNOWN_COMPONENT | 500 | nebula add was given a component the registry does not hold. |
E_NEBULA_UNKNOWN_ADAPTER | 500 | configure --adapter named an adapter other than tailwind, unocss or css. |
Neutrino Errors
| Code | HTTP | Description |
|---|---|---|
E_NEUTRINO_INVALID_DESCRIPTOR | 500 | The bytes are not a valid FileDescriptorSet. |
E_NEUTRINO_DUPLICATE_TYPE | 500 | Two descriptors declare the same type differently. |
E_NEUTRINO_UNKNOWN_TYPE | 500 | No message or enum type of this name is loaded. |
E_NEUTRINO_UNKNOWN_METHOD | 500 | No method of this path is loaded. |
E_NEUTRINO_INVALID_MESSAGE | 400 | The bytes are not a valid message of the type. |
E_NEUTRINO_INVALID_METADATA | 500 | Binary gRPC metadata is malformed; the server answers INTERNAL. |
E_NEUTRINO_GRPC_STATUS | 500 | A method answers a gRPC status instead of a reply; its message goes to the client as the status details. |
E_NEUTRINO_DUPLICATE_SERVICE | 500 | A service is registered twice. |
E_NEUTRINO_INVALID_IMPLEMENTATION | 500 | A method implementation is not a function. |
E_NEUTRINO_STREAMING_UNSUPPORTED | 500 | A streaming method was registered; only unary methods are served. |
E_NEUTRINO_INVALID_OPTION | 500 | A size option is not a whole number of bytes, or -1 for no limit. |
E_NEUTRINO_GRPC_UNSUPPORTED | 500 | The server has no grpc() method. Upgrade @c9up/ream. |
E_NEUTRINO_INVALID_CONFIG | 500 | defineConfig loads no schema, or config/protobuf.ts does not export defineConfig's shape. |
E_NEUTRINO_MISSING_CONFIG | 500 | config/protobuf.ts is missing at boot. |
E_NEUTRINO_INVALID_BINDING | 500 | The container returned something else for the Protobuf or GrpcServices token. |
E_NEUTRINO_NOT_BOOTED | 500 | @c9up/neutrino/services/main or services/grpc was used before NeutrinoProvider booted. |
E_NEUTRINO_INVALID_REPLY | 500 | A method, or an interceptor, returned something other than a message object; the call is answered INTERNAL and the error goes to onError. |
E_NEUTRINO_NEXT_CALLED_TWICE | 500 | An interceptor called next() more than once; the call is answered INTERNAL. |
E_NEUTRINO_VERIFIER_FAILED | 500 | The bearerAuth token verifier itself failed; the call is answered INTERNAL. |
Nova Errors
| Code | HTTP | Description |
|---|---|---|
E_NOVA_INVALID_SUBSCRIPTION | 400 | The subscribe or unsubscribe body is not a valid PushSubscription. |
E_NOVA_SUBSCRIPTION_CONFLICT | 409 | Another request was writing the same endpoint at the same time. Retry the subscribe. |
E_NOVA_SUBSCRIPTION_NOT_FOUND | 404 | The user has no such subscription. |
E_NOVA_MISSING_USER | 500 | The subscription handler ran without an authenticated user. |
E_NOVA_INVALID_USER_ID | 500 | The authenticated user has no usable id (a non-empty string or an integer), or pushToUser received an id that is not one. |
E_NOVA_VAPID_NOT_CONFIGURED | 500 | A VAPID key or subject is missing. |
E_NOVA_HTTP_CLIENT_MISSING | 500 | Sending a push needs the outbound HTTP client of @c9up/ream. |
E_NOVA_UNKNOWN_STORE | 500 | The config names a store it does not declare. |
E_NOVA_INVALID_TABLE | 500 | The SQL store's table name is not a plain identifier. |
E_NOVA_INVALID_PREFIX | 500 | The Redis store's key prefix contains a space. |
E_NOVA_STORE_BUSY | 500 | A subscription changed under every attempt to write it. |
E_NOVA_STORE_FILE_UNREADABLE | 500 | The file store's file is not valid JSON. |
E_NOVA_QUASAR_MISSING | 500 | A Redis store was configured and @c9up/quasar is not installed. |
E_NOVA_REDIS_INCOMPLETE | 500 | The quasar connection lacks what nova needs. |
E_NOVA_NOT_BOOTED | 500 | @c9up/nova/services/main was used before NovaProvider.boot() ran. |
E_NOVA_INVALID_OPTION | 500 | A delivery or store option is out of range: concurrency, timeout, a pushServices or allowHosts entry, maxSubscriptionsPerUser, maxPerUser, or a push's ttl or topic. |
E_NOVA_ASSERTION_FAILED | 500 | FakeNova.assertPushed() or assertNotPushed() does not hold. |
E_NOVA_INVALID_PREDICATE | 500 | A FakeNova assertion was given an empty containing, which would match every push. |
E_NOVA_INTERNAL | 500 | An invariant of nova broke (the VAPID key pair Node generated has an unexpected shape). A bug: report it. |
E_NOVA_SERVICE_WORKER_UNSUPPORTED | 500 | @c9up/nova/client ran where there is no navigator.serviceWorker. |
E_NOVA_PUSH_SUBSCRIBE_FAILED | 500 | The browser refused pushManager.subscribe(); its error is the cause. |
E_NOVA_ENDPOINT_REJECTED | 500 | The subscription route refused subscribe() or unsubscribe(); status and responseBody hold its answer. |
Orbit Errors
| Code | HTTP | Description |
|---|---|---|
E_ORBIT_NO_HOST | 500 | mount ran before useHost gave orbit a native host, or the module is not orbit's. |
E_ORBIT_COMMIT_FAILED | 500 | The native host refused a commit; the message carries its report. What the commit carried is sent again with the next one; a scheduled commit's refusal goes to mount's onError. |
E_ORBIT_UNSUPPORTED_ELEMENT | 500 | An element with no native mapping (select, canvas, or text / a gradient inside an svg). |
E_ORBIT_BLOCK_IN_TEXT | 500 | A block element inside text: native text holds only inline runs. |
E_ORBIT_INVALID_MOTION | 500 | motion=${…} was not an object of motion values. |
E_ORBIT_INVALID_SCROLL_BINDING | 500 | scroll-y=${…} was not a motion value. |
E_ORBIT_INVALID_COLOR | 500 | A colour orbit cannot read. |
E_ORBIT_INSECURE_IMAGE_URL | 500 | <img src> over plain http: images are fetched over https only. Thrown for an address written in the template; for one from data, that image shows nothing and the error goes to mount's onError. |
E_ORBIT_IMAGE_SOURCE | 500 | <img src> with a scheme that is not an image source (data:, javascript:…), with no scheme (//host/a.png) or a file: URL that does not decode. Thrown or reported as E_ORBIT_INSECURE_IMAGE_URL is. |
E_ORBIT_DUPLICATE_KEY | 500 | Two elements of an each list share a key. |
E_ORBIT_NO_SCREEN | 500 | useScreen() in a component no screen of a stack built. |
E_ORBIT_STACK_SHOWN | 500 | One stack put in two places: a stack is shown once. |
E_ORBIT_STYLE_TABLE | 500 | useStyles got something other than a table ream css:compile wrote. |
E_ORBIT_INSECURE_SERVER | 500 | serverPages({ server }) over plain http to a host that is neither this machine nor the emulator's. |
E_ORBIT_UNKNOWN_PAGE | 500 | The server named a page the app does not have (serverPages({ pages })). |
E_ORBIT_FOREIGN_ORIGIN | 500 | A server connection was asked for a path that resolves to another origin. |
E_ORBIT_SERVER_REQUEST_FAILED | 500 | The server answered a json request with an empty non-2xx response. |
E_ORBIT_NO_XHR | 500 | Server events need an XMLHttpRequest, and the platform has none. |
E_ORBIT_OBJECT_URL_UNAVAILABLE | 500 | URL.createObjectURL was called with no platform URL to make blob URLs. A TypeError, as the native API raises. |
E_ORBIT_INVALID_URL | 500 | The standard URL was given a URL, or a base, that does not parse. A TypeError, as the native API raises. |
E_ORBIT_UNSUPPORTED_ENCODING | 500 | The standard TextDecoder was given an encoding label other than UTF-8's. A RangeError, as the native API raises. |
E_ORBIT_INVALID_DECODER_INPUT | 500 | TextDecoder.decode was given something that is not an ArrayBuffer or a view on one. A TypeError, as the native API raises. |
E_ORBIT_INVALID_ENCODED_DATA | 500 | A fatal TextDecoder met bytes that are not valid UTF-8. A TypeError, as the native API raises. |
E_ORBIT_INTERNAL | 500 | An invariant inside orbit broke: a bug in orbit. |
E_ORBIT_TREE_TOO_DEEP | 500 | The views nest more than 100 levels deep: the host lays the tree out on the JS thread's stack, so it refuses the commit before layout. What the commit carried is sent again with the next one. |
E_ORBIT_SVG_VALUE | 500 | A value of an <svg> the host cannot read (a NaN length, unreadable path data, points or transform). That shape is left out and the rest drawn; reported to mount's onError, never thrown. |
Orbit Clipboard Errors
Raised by @c9up/orbit-clipboard, the same in the browser and on a phone.
| Code | HTTP | Description |
|---|---|---|
E_ORBIT_CLIPBOARD_UNAVAILABLE | 500 | No clipboard to reach: the server, an insecure page, or an app built without the native module. |
E_ORBIT_CLIPBOARD_DENIED | 500 | The platform refused: no permission, or the page or app was not in focus. |
Orbit Secure Store Errors
Raised by @c9up/orbit-secure-store. A cancelled biometric check is not a failed one.
| Code | HTTP | Description |
|---|---|---|
E_ORBIT_SECURE_STORE_UNAVAILABLE | 500 | No secure store here: the browser, the server, or an app built without the module. |
E_ORBIT_SECURE_STORE_INVALID_KEY | 500 | A key that is not 1 to 128 of A-Z a-z 0-9 . _ -. |
E_ORBIT_SECURE_STORE_NO_BIOMETRICS | 500 | requireAuthentication on a phone with no strong biometric enrolled. |
E_ORBIT_SECURE_STORE_AUTH_CANCELLED | 500 | The user dismissed the biometric prompt. |
E_ORBIT_SECURE_STORE_AUTH_FAILED | 500 | The biometric check failed for good: too many attempts, a lockout, a hardware error. |
E_ORBIT_SECURE_STORE_INVALIDATED | 500 | The key behind the value is gone (a new biometric enrolled, the app's data restored), and the value with it. |
E_ORBIT_SECURE_STORE_FAILED | 500 | Anything else the platform reported; the error never carries the value. |
Parsec Errors
| Code | HTTP | Description |
|---|---|---|
E_PARSEC_INVALID_NAME | 500 | A metric or label name is not valid. |
E_PARSEC_INVALID_INSTRUMENT | 500 | An instrument is declared with options it cannot have. |
E_PARSEC_INSTRUMENT_CONFLICT | 500 | A metric name is already declared with a different type, help or label set. |
E_PARSEC_INVALID_MEASUREMENT | 500 | A measurement is not a finite number. |
E_PARSEC_INVALID_LABEL_VALUE | 500 | A label value is neither a string nor a finite number. |
E_PARSEC_UNDECLARED_LABEL | 500 | A measurement was given a label the metric does not declare. |
E_PARSEC_UNKNOWN_EXPORTER | 500 | An exporter name is not declared. |
E_PARSEC_UNPROTECTED_ENDPOINT | 500 | The metrics endpoint would be served without protection. Set a token, or public: true deliberately. |
E_PARSEC_EMPTY_TOKEN | 500 | The metrics endpoint token is empty, which would match a request without credentials. |
E_PARSEC_INVALID_CONFIG | 500 | config/metrics.ts does not export defineConfig({ default, exporters }). |
E_PARSEC_INVALID_BINDING | 500 | The container answers something other than a MetricsManager for the MetricsManager token. |
E_PARSEC_NOT_BOOTED | 500 | The metrics service or the HTTP middleware was used before ParsecProvider bound the manager, or before setMetrics(). |
Photon Errors
Server-side errors are thrown from @c9up/photon (SSR / renderer); client-side errors are thrown from @c9up/photon/client (hydration / SPA-nav). Every code carries a docsUrl that resolves to its anchor below — operators can jump from the terminal directly to the recovery instructions.
E_PHOTON_INVALID_CONFIG
Cause. A field in config/photon.ts (or the PhotonConfig passed to PhotonRenderer) fails validation: buildDir resolves outside the project root, or ssr.entrypoint / entryClient contains path-traversal segments or characters outside [\w./\-@#].
Fix.
- Open
config/photon.tsand verifybuildDiris a relative path INSIDE your project (e.g.dist, NOT../dist). - Verify
ssr.entrypointandentryClientare relative paths without..segments and end in.tsx?/.jsx?/.vue/.svelte. - Restart the renderer (
PhotonRenderer.boot()re-validates).
Also thrown at render time when rootView names a template but the request has no view engine (ctx.view): install one (@c9up/inker sets it), or make rootView return a function that writes the document.
Throw site: packages/photon/src/PhotonRenderer.ts.
E_PHOTON_MANIFEST_MISSING
Cause. The Vite manifest at ${buildDir}/manifest.json is absent when PhotonRenderer.boot() runs in production mode. The manifest is a build artefact — its absence almost always means the build never ran for this deployment, or the build output was not shipped.
Fix.
- Run your build script (e.g.
pnpm build) before starting the server in production. - Verify your deployment pipeline copies the build directory (default
public/build/) into the runtime image. - Confirm
PhotonConfig.buildDirmatches where Vite writes its output.
The thrown error's context carries { manifestPath, buildDir } for diagnostics.
Throw site: packages/photon/src/PhotonRenderer.ts.
E_PHOTON_MANIFEST_INVALID
Cause. The Vite manifest is there but cannot be read, is not JSON, or is not a manifest object. Photon used to skip it with a warning and then point every page at a client.js the build never wrote, so the server looked healthy and nothing hydrated; it now fails the boot.
Fix.
- Rebuild the client and redeploy the whole build directory — a partial copy is the usual cause.
- Check the process can read the file.
The thrown error's context carries { manifestPath }, and cause the read or parse error.
Throw site: packages/photon/src/PhotonRenderer.ts.
E_PHOTON_SSR_LOAD_FAILED
Cause. The Vite manifest is present, but the SSR entry module fails to load: missing build output for ssr.entrypoint (or, in development, no file there at all), syntax error in the bundled SSR file, or an unmet peer dependency at runtime. Distinct from E_PHOTON_MANIFEST_MISSING — that code fires when the manifest is absent; this one fires when the manifest is there but import() of the SSR entry rejects.
Fix.
- Re-run
ream build(or your project's build script) and check its output for warnings. - Verify the SSR entry file exists at one of the expected paths (
<ssrBuildDir>/ssr.jsor<ssrBuildDir>/<entryName>.js,ssrBuildDirdefaulting tobuild/ssr). - If the build runs but the import still fails, inspect the bundled file for missing peer dependencies (e.g.
react-dom/serverfor the React adapter).
Throw site: packages/photon/src/PhotonRenderer.ts.
E_PHOTON_SSR_RENDER_FAILED
Cause. The SSR module loaded successfully, but its render(pageData) call threw or returned a non-string value. Common causes: a component throws during render, a useEffect-equivalent runs server-side and accesses window, or the SSR entry returns undefined.
Fix.
- Read
error.cause(or thehint) — it carries the original error message from the SSR module. - Audit the page component for browser-only globals (
window,document,localStorage) accessed at module top level or in render. - Confirm the SSR entry's
render()export returns a string (React:renderToString(...); Vue:renderToString(...)from@vue/server-renderer; Svelte:<App />.render(...).html).
Throw site: packages/photon/src/PhotonRenderer.ts.
E_PHOTON_HYDRATION_NO_DATA
Cause. The browser-side hydrate() call ran but no <script id="photon-data" type="application/json"> block was found in the document. Almost always means the page was NOT rendered through PhotonRenderer.render() (a hand-rolled HTML response, a static file, or a 404 page).
Fix.
- Confirm the route returning this page goes through
PhotonMiddleware/PhotonRenderer.render(). - If you serve an SPA fallback, render it through Photon as well — even an empty shell needs the data block for
hydrate()to find it.
Throw site: packages/photon/src/client/boot.ts.
E_PHOTON_HYDRATION_BAD_DATA
Cause. The <script id="photon-data"> block was found, but its contents are not a JSON object with the expected { component, props, url, framework } shape. Causes: HTML mangling by a CDN / proxy that re-encodes script blocks, double-escaping by middleware that doesn't know the block is meant to be raw JSON, or a manual edit of the SSR template.
Fix.
- Inspect the page source: the block content must round-trip through
JSON.parsecleanly. - Disable any HTML-rewriting middleware (compression, link-rewriting, CSP nonce injection) that touches the body — verify the block remains intact in production.
- If you customised the SSR template, keep the
<script type="application/json" id="photon-data">…</script>block exactly asPhotonRenderer.render()emits it.
Throw site: packages/photon/src/client/boot.ts.
E_PHOTON_HYDRATION_NO_TARGET
Cause. The hydrate target selector (default #app) matched no DOM node. Usually a custom target option that doesn't exist in the SSR HTML, or a stripped id="app" from a custom template.
Fix.
- Confirm the SSR HTML contains the element matching
hydrate({ target }). - If you customised the renderer's HTML envelope, keep the
<div id="app">…</div>(or overridetargetto match your wrapper's id).
Throw site: packages/photon/src/client/boot.ts.
E_PHOTON_HYDRATION_UNSUPPORTED_FRAMEWORK
Cause. The framework field in the page-data block is not one of react, vue, or svelte. Either the SSR side wrote an unexpected value, or page-data was hand-crafted with a typo.
Fix.
- Verify
PhotonConfig.frameworkon the server is set to a supported value. - If you serialise page-data manually (rare), ensure
frameworkmatches the union literal exactly.
Throw site: packages/photon/src/client/hydrate.ts.
E_PHOTON_HYDRATION_ADAPTER_LOAD_FAILED
Cause. Photon successfully read the page-data and dispatched to the right adapter, but the dynamic import() of the framework runtime rejected. Almost always a missing peer dependency: react + react-dom for React, vue for Vue, svelte for Svelte.
Fix.
- Install the framework's runtime:
pnpm add react react-dom(orvue, orsvelte). - The thrown error's
causecarries the original module-resolution failure — useful when the package is installed but a sub-path is missing (e.g.react-dom/clientrequires React 18+).
Throw site: packages/photon/src/client/hydrate.ts.
E_PHOTON_UNKNOWN_ROUTE
Cause. A Link, a Form, router.visit or urlFor named a route the browser does not know: it is not among the routes handed over with setRoutes(), or setRoutes() was never called.
Fix.
- Call
setRoutes(router.namedRoutes())once, before the first page renders; the error'shintlists the routes it knows. - Check the name against the server's
router.as(...).
Throw site: packages/photon/src/client/routes.ts.
E_PHOTON_MISSING_ROUTE_PARAMS
Cause. A named route has parameters (/users/:id) that routeParams did not supply. The message names them; context carries the route and the params given.
Fix. Pass every parameter of the route in routeParams.
Throw site: packages/photon/src/client/routes.ts.
E_PHOTON_UNKNOWN_PAGE
Cause. The resolve given to createPhotonApp returned nothing for a page name — usually a path built from the name that matches no file of import.meta.glob.
Fix. Check the path resolve builds from the page name against your pages directory; resolvePageComponent throws with the path it looked for.
Throw site: packages/photon/src/client/app.ts.
A note on hydration mismatches
Hydration mismatches (server-rendered HTML differs from the client's first render) are not thrown by Photon. Each framework owns this diagnostic:
- React: emits a
console.errorwithHydration failed because .... See https://react.dev/errors/418. - Vue: emits a
[Vue warn]: Hydration ...console warning. - Svelte: emits an
Error: hydration_failedfromsvelte/internal.
If you see one, the cause is almost always a non-deterministic render: a Date.now(), Math.random(), useEffect that runs only on the client, or a process.env check that differs between server and browser. Photon's contract is that render(component, props) is pure; ensure your component is too.
| Code | HTTP | Description |
|---|---|---|
E_PHOTON_MISSING_CONFIG | — | The container resolved PhotonRenderer and there is no config/photon.ts. |
E_PHOTON_INVALID_DURATION | — | A once() prop's expiresIn is neither milliseconds nor a duration like 30s, 5m, 7d. |
E_PHOTON_SCROLL_CURSOR_UNDERIVABLE | — | scroll() was given a value that is not an offset paginator and no cursor callback; pass one as its second argument. |
E_PHOTON_INVALID_PAGE_MODULE | — | resolvePageComponent loaded a module with no default export. |
E_PHOTON_INVALID_PAGE_RESPONSE | — | The first page requested from the server answered an error status, or something other than a JSON page object. |
E_PHOTON_NO_ROUTER_HOST | — | The client router ran with no host: no browser document, and none given to bootPage. |
E_PHOTON_NO_PAGE | — | usePage() was called outside a Photon page (on the server, outside <PhotonPage>). |
E_PHOTON_UNKNOWN_SCROLL_PROP | — | An infinite scroll names a prop the page object has no scroll prop for. |
E_PHOTON_INVALID_DEFERRED | — | <Deferred> is missing its data prop or its fallback. |
E_PHOTON_FORM_DATA_MISSING | — | useForm(rememberKey) was called without the form data. |
E_PHOTON_FORM_DEFAULTS_UNSUPPORTED | — | setDefaults() was called on a form whose data is a function. |
E_PHOTON_INVALID_SVELTE_ROOT | — | The svelteRoot given to the Svelte adapter does not export setPage(); pass the root from @c9up/photon/svelte. |
E_PHOTON_INVALID_SSR_SETUP | — | Svelte's createPhotonApp rendered on the server without a setup, or its setup did not return render(App, { props }) from svelte/server. |
E_PHOTON_DEFERRED_PROPS_MISSING | — | The answer to a deferred group did not carry the props asked for; reported on the router's exception event (photon:exception), not thrown, and not asked for again on that visit. |
Prism Errors
The image engine reports a stable code with each failure; /__image answers its refusals as JSON with the status shown.
| Code | HTTP | Description |
|---|---|---|
E_PRISM_IMAGE_NO_SOURCE | 400 | /__image was called without src. |
E_PRISM_IMAGE_WIDTH_NOT_ALLOWED | 400 | w is not one of the configured widths. |
E_PRISM_IMAGE_FORMAT_NOT_ALLOWED | 400 | f is not one of the configured formats. |
E_PRISM_IMAGE_QUALITY_NOT_ALLOWED | 400 | q is not one of the configured qualities. |
E_PRISM_IMAGE_NOT_FOUND | 404 | No image at src. |
E_PRISM_IMAGE_UNPROCESSABLE | 422 | The source is not an image the endpoint can serve. |
E_PRISM_IMAGE_BUSY | 503 | Too many images are being rendered; retry shortly. |
E_PRISM_EMPTY_INPUT | 422 | The input is empty. |
E_PRISM_INPUT_TOO_LARGE | 422 | The input is over the byte limit. |
E_PRISM_TOO_MANY_PIXELS | 422 | The image (its header, or any GIF frame), or an image an operation would build, is over the pixel ceiling; refused before it is allocated. |
E_PRISM_ZERO_DIMENSION | 422 | The image has a zero width or height. |
E_PRISM_UNKNOWN_FORMAT | 422 | The bytes are not an image format prism recognises. |
E_PRISM_UNSUPPORTED_FORMAT | 422 | The format is recognised but not supported. |
E_PRISM_FORMAT_NOT_ALLOWED | 422 | A real image, in a format the application chose not to decode. |
E_PRISM_UNREADABLE | 422 | The image cannot be read: corrupt, a WebP bitstream whose size is not its frame's, an AVIF item located in more bytes than the file holds. |
E_PRISM_DECODE_FAILED | 422 | Decoding the image failed. |
E_PRISM_ENCODE_FAILED | 500 | Encoding the output failed. |
E_PRISM_INVALID_GEOMETRY | 500 | A geometry the image cannot satisfy: a crop outside its bounds, a target size of zero. |
E_PRISM_INVALID_FONT | 500 | A font cannot be used. |
E_PRISM_COLOUR_SPACE | 500 | A colour space that cannot be named, or a conversion the model refuses. |
E_PRISM_INVALID_OPERATION | 500 | An operation lacks a field it needs, or has one out of range. |
E_PRISM_QR_TOO_LONG | 500 | More text than a QR code can hold at the chosen level and version. |
E_PRISM_INVALID_QR_OPTION | 500 | A QR code option out of range, or a colour that is not strict hex. |
E_PRISM_INTERNAL_PANIC | 500 | The engine panicked; always a bug in prism. |
E_PRISM_ENGINE | 500 | The engine failed without a known code. |
E_PRISM_NATIVE_REQUIRED | 500 | The Rust image engine is not loaded. |
E_PRISM_NOT_BOOTED | — | The services/main engine was used before PrismProvider booted or setPrism() was called. |
E_PRISM_INVALID_CONFIG | 500 | config/images.ts does not export a defineConfig({ ... }) config. |
E_PRISM_INVALID_SERVE_CONFIG | 500 | images.serve declares no roots, one of its counts (concurrency, queueLimit, effort, memoryCacheBytes, maxCacheBytes…) is out of range, or cacheControl is not 'public', 'private' or false. |
E_PRISM_INVALID_BINDING | 500 | The container resolved something other than a Prism for the Prism token, or other than a router for router. |
E_PRISM_MEMORY_LIMIT | 422 | A step of the pipeline (the decoded image, a resize's float intermediate, an encoder's copy) would hold more than limits.maxMemory bytes; refused before it is allocated. |
Quasar Errors
| Code | HTTP | Description |
|---|---|---|
E_INVALID_BYTES_VALUE | 500 | A Redis health check memory threshold cannot be read as a size. |
E_QUASAR_MISSING_CONFIG | 500 | QuasarProvider registers and config/redis.ts does not exist. |
E_QUASAR_INVALID_CONFIG | 500 | defineConfig declares no connection, or names a default connection it does not declare. |
E_QUASAR_INVALID_PORT | 500 | A connection's port is not a whole number between 0 and 65535. |
E_QUASAR_UNKNOWN_CONNECTION | 500 | connection(name) names a connection the config does not declare. |
E_QUASAR_UNKNOWN_COMMAND | 500 | runCommand() names a command never defined with defineCommand(), or the connection lacks a forwarded command. |
E_QUASAR_NOT_A_CLUSTER | 500 | nodes() is called on a standalone connection. |
E_QUASAR_INVALID_DURATION | 500 | cacheFor() on a health check is given a duration it cannot read. |
E_QUASAR_NOT_BOOTED | 500 | A member of services/main was read before QuasarProvider seated a manager, or before setQuasar(). |
Ream MCP Errors
Returned in the result of the MCP server's template tool.
| Code | HTTP | Description |
|---|---|---|
E_INKER_RENDER_TIMEOUT | — | A template render took longer than the tool allows. |
E_INKER_UNKNOWN | — | A template render failed without an inker code. |
E_REAM_MCP_INVALID_ARGUMENT | 500 | A tool or helper was called without a required argument (docs.get, docs.explain, an empty string) or with an out-of-range duplicate-detection threshold. |
E_REAM_MCP_PROJECT_ROOT_NOT_FOUND | — | No Ream project root was found walking up from the working directory, or the one found above it is owned by another user or writable by group or others; set REAM_PROJECT_ROOT. |
E_REAM_MCP_NATIVE_UNAVAILABLE | 500 | The native core did not report a version at startup: the binary is missing or incompatible. |
E_REAM_MCP_NATIVE_MISMATCH | 500 | The native core answered something the server does not expect (trace, index statistics, model manifest): the binary is stale or from another version. |
E_REAM_MCP_PATH_ESCAPE | 500 | A migration file name or a model file path resolves outside its directory. |
E_REAM_MCP_INVALID_MIGRATION | 500 | A migration's default export is not a migration class, or its getDownSQL() does not return a list of strings. |
E_REAM_MCP_MODEL_DOWNLOAD_FAILED | 500 | Downloading an embeddings model file answered an HTTP error or no body. |
E_REAM_MCP_MODEL_INTEGRITY | 500 | A downloaded model file does not match its pinned size or SHA-256; nothing is kept. |
E_REAM_MCP_SHELL_DISALLOWED | 500 | REAM_MCP_NO_SHELL=1 forbids spawning the ream binary. |
E_REAM_MCP_CLI_NOT_FOUND | — | The ream binary is neither at $REAM_BIN nor in the project's node_modules/.bin. |
E_REAM_MCP_CLI_OUTPUT_INVALID | 500 | The last line of the ream CLI's output is not a JSON object. |
E_REAM_MCP_ALREADY_CONNECTED | 500 | McpServer.connect() was called on a server that is already connected. |
E_REAM_MCP_INTERNAL | 500 | An internal invariant broke (an unknown tool kind reached a dispatcher); report it as a bug. |
E_REAM_MCP_INDEX_FAILED | 500 | The native corpus index could not be built, opened or read (docs.* tools, startup reindex, ream-mcp-reindex); cause is the native error. |
E_REAM_MCP_INVALID_JSON | 500 | The native core could not read the JSON it was given (search options) or write its answer as JSON; cause is the native error. |
E_REAM_MCP_UNSUPPORTED_PLATFORM | 500 | Importing @c9up/ream-mcp/napi on a platform with no native binary (supported: linux-x64, linux-arm64 on glibc, darwin-x64, darwin-arm64, win32-x64). |
E_REAM_MCP_NATIVE_LOAD_FAILED | 500 | The native binary of @c9up/ream-mcp/napi is missing or cannot be loaded; the message names the platform package to install, cause is Node's error. |
Relay Errors
Returned in the JSON body of the relay routes, or as an error event on a hub.
| Code | HTTP | Description |
|---|---|---|
E_RELAY_BAD_REQUEST | 400 | subscribe without a usable uid or channel (both non-empty strings). |
E_RELAY_CHANNEL_TOO_LONG | 400 | The channel name exceeds 256 characters. |
E_RELAY_NOT_CONNECTED | 400 | No connection has this uid on this instance and no bus is configured to relay the request to the instance holding it — or the connection closed. Also a hub POST for a connection that has no open stream. |
E_RELAY_BUS_UNAVAILABLE | 503 | The subscription had to be relayed to the instance holding the stream, and the bus refused the message. |
E_RELAY_NOT_OWNER | 403 | The connection was opened by another user; subscribe, unsubscribe and hub frames must come from the same one. |
E_RELAY_CHANNEL_NO_AUTHORIZER | 403 | No relay.authorize() covers the channel, and allowUnauthorizedChannels is off. |
E_RELAY_CHANNEL_FORBIDDEN | 403 | The channel's authorizer refused, or threw. |
E_RELAY_MAX_CHANNELS | 429 | The connection holds maxChannelsPerClient channels already. |
E_RELAY_MAX_CLIENTS | — | The instance holds maxClients connections already; sent as an error frame before the stream closes. |
E_RELAY_MAX_CLIENTS_PER_OWNER | — | This user holds the maximum number of connections already; sent as an error frame before the stream closes. |
E_RELAY_UNKNOWN_CONNECTION | 400 | A hub request with no valid connection token — call <path>/negotiate first. |
E_RELAY_MAX_CONNECTIONS | 503 | A hub already has maxConnections open streams. |
E_RELAY_MAX_CONNECTIONS_PER_OWNER | 503 | This client already has the maximum number of open hub streams. |
E_RELAY_MAX_PENDING | 503 | Too many hub connections are negotiated and not yet open. |
E_RELAY_SHUT_DOWN | 503 | The realtime service is shutting down. |
E_RELAY_UNAUTHORIZED | 401 | A guarded hub needs an authenticated user, or one authenticated through another guard. Answered at negotiate, at the stream and at the WebSocket handshake; sent as an error event, before the connection closes, when an invocation is refused. |
E_RELAY_FORBIDDEN | 403 | The user lacks the role or the permissions a hub's guards require. Answered at negotiate, at the stream and at the WebSocket handshake; sent as an error event, before the connection closes, when an invocation is refused. |
E_RELAY_UNKNOWN_EVENT | — | A hub invocation names no handler. |
E_RELAY_HANDLER_ERROR | — | A hub handler threw. |
E_RELAY_INVALID_CHANNEL_PATTERN | 500 | authorize() was given a channel pattern that could never match. |
E_RELAY_INVALID_PING_INTERVAL | 500 | pingInterval is neither milliseconds nor a duration like '30s'. |
E_RELAY_HUB_PATH_TAKEN | 500 | relay.hub() names a path where a hub is already mounted. |
E_RELAY_HUB_ALREADY_MOUNTED | 500 | One hub instance is mounted a second time; give each mount its own instance. |
E_RELAY_DUPLICATE_HANDLER | 500 | Two handlers of a hub differ only by case, so they answer the same invocation. |
E_RELAY_INVALID_HUB | 500 | The object mounted with relay.hub() does not extend Hub. |
E_RELAY_INVALID_ADAPTER | 500 | The adapter given to relay.hub() is not a SignalRAdapter. |
E_RELAY_TRANSPORT_NOT_STARTED | 500 | whenTransportReady() was called before startTransport(). |
E_RELAY_TRANSPORT_SUPERSEDED | 500 | A startTransport() was overtaken by a shutdown or a newer start before it subscribed. |
E_RELAY_TRANSPORT_UNRELEASED | 500 | startTransport() could not release the previous bus subscription, so it refuses to subscribe again; cause is the bus's error. |
E_RELAY_QUASAR_MISSING | 500 | A Redis bus names a quasar connection and @c9up/quasar is not installed, or its provider has not booted. |
E_RELAY_REDIS_INCOMPLETE | 500 | The quasar connection lacks a command the bus issues. |
E_RELAY_ASSERTION_FAILED | 500 | FakeRelay.assertSent() or assertNotSent() does not hold. |
E_RELAY_INTERNAL | 500 | An invariant of relay broke. A bug: report it. |
E_RELAY_SUBSCRIBE_FAILED | 500 | The bus client's subscribe failed with something other than an Error; cause holds what it threw. |
E_RELAY_MAX_QUEUED | 429 | A hub connection already has maxQueuedMessages messages waiting for the hub; the POST is refused and nothing of it runs. A WebSocket in the same state is closed with code 1013. |
Robledo Errors
Raised by @c9up/robledo.
| Code | HTTP | Description |
|---|---|---|
E_ROBLEDO_INVALID_PREFIX | 500 | The routes' prefix does not start with /, or ends with one. |
E_ROBLEDO_NOT_BOOTED | 500 | services/main was used before the provider booted. |
E_ROBLEDO_NO_NATIVE_MODULE | 500 | The app has no native robledo module: it was not built with robledo installed. |
E_ROBLEDO_BAD_RESPONSE | 500 | The server answered an update check, or a file download, with something other than an update: an error status, no manifest, a latest answer over 1 MiB, or a file larger than its signed size. |
E_ROBLEDO_REFUSED | 500 | The phone refused an update: bad signature (checked before any file is fetched), altered file, wrong runtime, another app's update… |
E_ROBLEDO_NOT_NEWER | 500 | The phone refused an update that is not newer (by its signed createdAt) than the newest it accepted, or than the bundle inside the app: an old, validly signed update served again. A deliberate rollback is published as a new update. |
Rosetta Errors
| Code | HTTP | Description |
|---|---|---|
E_ROSETTA_NOT_BOOTED | — | The services/main singleton was used before RosettaProvider booted, or before setI18n(). |
E_ROSETTA_CONFIG_MISSING | 500 | config/i18n exports no config built with defineConfig(). |
E_ROSETTA_INVALID_CONFIG | 500 | The i18n config has no formatter. |
E_ROSETTA_INVALID_ARGUMENT | 500 | A constructor or method got an argument of the wrong shape (an emitter, a manager, a locale, a FileSystemLoader without location or rootDir, an empty format key). |
E_ROSETTA_UNSAFE_KEY | 500 | A catalog key or an ICU custom format key is one that would reach the prototype (__proto__, constructor, prototype). |
E_ROSETTA_DUPLICATE_KEY | 500 | A catalog defines the same key twice: a YAML key, or a nested and a dotted key that flatten to one. |
E_ROSETTA_INVALID_CATALOG | 500 | A catalog file does not parse (unsupported YAML) or holds a value that is neither a mapping nor a scalar message. |
E_ROSETTA_CATALOG_LIMIT_EXCEEDED | 500 | A catalog is too deep, has too many keys, or a catalog file is too large. |
E_ROSETTA_UNSAFE_PATH | 500 | A translation directory or file is a symbolic link, or resolves outside the loader's root. |
E_ROSETTA_INVALID_PATH | 500 | A translation path is not a directory, or not a file, where one is expected. |
E_ROSETTA_UNSUPPORTED_RUNTIME | 500 | FileSystemLoader was used from the browser build, which has no filesystem. |
E_ROSETTA_INVALID_ICU_MESSAGE | 500 | An ICU message does not parse, or uses a style, skeleton or option Rosetta or Intl does not support. |
E_ROSETTA_ICU_LIMIT_EXCEEDED | 500 | An ICU message is too long, too deeply nested, or has too many nodes. |
E_ROSETTA_MISSING_VARIABLE | 500 | An ICU message uses a variable the call did not provide. |
E_ROSETTA_INVALID_DATE | 500 | An ICU date or time value is not a Date, a timestamp, an ISO string or a Luxon-like DateTime, or names an impossible date. |
E_ROSETTA_CATALOG_MISMATCH | 500 | verifyCatalogs({ mode: 'throw' }) found catalogs that disagree; the message is the report. |
E_ROSETTA_INTERNAL | 500 | An internal invariant broke (an unknown ICU node, a parser state); report it as a bug. |
Rover Errors
| Code | HTTP | Description |
|---|---|---|
E_MAIL_INVALID_MESSAGE | 500 | A message lacks what sending needs (a from address, a recipient…). |
E_MAIL_INVALID_ADDRESS | 500 | An address is not a valid mail address. |
E_MAIL_HEADER_INJECTION | 500 | A header value contains a line break or NUL. |
E_INVALID_LIST_HEADER | 500 | A List-* header entry is not one URL (https, http, mailto or ftp) or bare address. |
E_MAIL_FIELD_UNSUPPORTED | 500 | The transport cannot set a field the message uses (such as the SMTP envelope). |
E_ATTACHMENT_UNREADABLE | 500 | An attachment's file cannot be read. |
E_MAIL_RETRY_CONFIG | 500 | A retry setting is out of range. |
E_MAIL_CONFIG_MISSING | 500 | No mail config is registered. Create config/mail.ts, or run ream configure @c9up/rover. |
E_MAIL_UNKNOWN_MAILER | 500 | A mailer name, or the default mailer, is not configured. |
E_MAIL_UNKNOWN_TRANSPORT | 500 | A transport type is unknown. |
E_MAIL_JOB_MALFORMED | 500 | A queued mail job's payload is missing or not an object. |
E_MAIL_TEMPLATE_ENGINE | 500 | The app uses inker but rover cannot render mail views with it. |
E_MAIL_TEMPLATE_NOT_FOUND | 500 | A mail template is not found. |
E_MAIL_TEMPLATE_READ_ERROR | 500 | A mail template cannot be read. |
E_MAIL_TEMPLATE_SYNTAX | 500 | A mail template has a syntax error. |
E_MAIL_TEMPLATE_RECURSION | 500 | Mail templates include each other too deep. |
E_MAIL_TEMPLATE_NAPI_REQUIRED | 500 | The native rover engine is missing or cannot be loaded; the message names the platform package to install. |
E_ROVER_UNKNOWN | — | A send failed with an error that carries no code of its own. |
E_ROVER_NOT_BOOTED | 500 | The services/main mail singleton was used before RoverProvider booted. |
E_ROVER_FAKE_ACTIVE | 500 | mail.fake() was called while a fake is already active; call restore() first. |
E_ROVER_INVALID_PREDICATE | 500 | A fake-mailer assertion got an empty containing needle, which would match every message. |
E_ROVER_ABSTRACT_MAIL | 500 | BaseMail was instantiated directly instead of through a subclass. |
E_ROVER_WEBHOOK_KEY_MISSING | 500 | A webhook handler was created without its secret, public key or signing key. |
E_ROVER_WEBHOOK_INVALID_SECRET | 500 | The Resend webhook secret is not valid base64, or decodes to fewer than 16 bytes. |
E_ROVER_INTERNAL | 500 | An internal invariant broke (nodemailer composed no message); report it as a bug. |
E_MAIL_TRANSPORT_ERROR | 500 | The mail transport failed to send. Its context carries the provider's status or network code; built as new E_MAIL_TRANSPORT_ERROR(message, { context, cause, help }). |
E_INVALID_CONFIG | 500 | A mail transport's config is missing a property or holds an invalid one (Invalid config for "resend" transport. The "apiKey" property is missing). A message without recipients raises E_MAIL_INVALID_MESSAGE instead. |
E_ROVER_ICAL_UNAVAILABLE | 500 | icalEvent(callback) needs ical-generator, which is not installed or does not build a calendar. |
E_ROVER_WEBHOOK_INVALID_KEY | 500 | The SendGrid webhook publicKey is not a public key, or not the ECDSA P-256 key SendGrid signs its event webhook with. |
Rune Errors
Rune normalises its codes: a code that already starts with E_ is kept, any other gets the E_RUNE_ prefix.
| Code | HTTP | Description |
|---|---|---|
E_VALIDATION_ERROR | 422 | validateOrThrow() found invalid data. Carries a messages array with one entry per field and rule. |
E_RUNE_META_REQUIRED | 500 | A validator built with withMetaData() was called without { meta }. |
E_RUNE_NOT_A_REGULAR_FILE | 500 | A file() value is not a regular file, so it is not an upload. |
E_RUNE_INVALID_SIZE | 500 | file() was given a size it cannot read. |
E_RUNE_INVALID_ERROR_REPORTER | 500 | errorReporter takes no argument and did not return a reporter ({ report, createError }). |
E_RUNE_INVALID_RULE | 500 | use() was given something other than a compiled rule; call the factory first. |
E_RUNE_NO_RULE | 500 | message() was called before any rule. |
E_RUNE_NOT_AN_OBJECT | 500 | merge() (or a similar shape method) needs an object() shape. |
E_RUNE_PARTIAL_NOT_APPLICABLE | 500 | partial() cannot relax a shape that has groups or allowUnknownProperties(). |
E_RUNE_NO_TYPE_RULE | 500 | A unionOfTypes() branch declares no type. |
E_RUNE_DUPLICATE_UNION_TYPE | 500 | Two unionOfTypes() branches declare the same type. |
E_RUNE_ASYNC_RULE_NOT_AWAITED | 500 | A synchronous run met an async rule. Use the async variant. |
E_RUNE_NO_DATABASE_RESOLVER | 500 | A database rule (unique, exists) has no resolver. Call bindDatabase() at boot, or pass a callback. |
E_RUNE_NO_HOST_RESOLVER | 500 | activeUrl() needs a host resolver. |
E_RUNE_UNSUPPORTED_LOCALE | 500 | mobile() has no numbering plan for the locale. |
E_RUNE_UNSUPPORTED_COUNTRY | 500 | A country-specific rule (postalCode()…) has no pattern for the country. |
E_RUNE_UNSUPPORTED_JSON_SCHEMA_TARGET | 500 | A JSON Schema target rune does not emit. |
E_RUNE_NO_OUTPUT_SCHEMA | 500 | A validator's output cannot be described as JSON Schema: a transform may produce anything. |
E_RUNE_NAPI_REQUIRED | 500 | The Rust validation engine is missing or cannot be loaded; the message names the platform package to install. |
E_RUNE_NAPI_NOT_FOUND | 500 | The Rust validation engine binary is not found; the message names the platform package to install. |
E_RUNE_NAPI_REQUEST_REFUSED | 500 | The Rust validation engine refused the request. |
E_RUNE_NAPI_INVALID_RESPONSE | 500 | The Rust validation engine returned an unexpected shape. |
E_RUNE_CONFLICTING_URL_OPTIONS | 500 | normalizeUrl() was given both forceHttp and forceHttps. |
Sigil Errors
| Code | HTTP | Description |
|---|---|---|
E_SIGIL_UNKNOWN_DRIVER | 500 | A hasher names a driver sigil does not know. |
E_SIGIL_NAPI_REQUIRED | — | The driver needs the Rust engine, which is not loaded. |
E_SIGIL_NOT_BOOTED | — | hash.<member> was used before SigilProvider.boot() ran. |
E_SIGIL_UNKNOWN_HASHER | 500 | hash.use(name) (or the config's default) names a hasher the hash config does not declare. |
E_SIGIL_INVALID_OPTION | 500 | A hash driver option is not an integer, out of range, not an allowed value, or the options together cost more than verify accepts. |
E_SIGIL_PASSWORD_TOO_LONG | 500 | make received a password longer than the driver accepts (the shared byte cap, or 72 bytes for bcrypt). |
Spectrum Errors
| Code | HTTP | Description |
|---|---|---|
E_SPECTRUM_UNKNOWN_LEVEL | 500 | A transport target level is not a log level. |
E_SPECTRUM_UNSUPPORTED_TARGET | 500 | A transport target spectrum does not build. Pass a LogChannel to write anywhere else. |
E_SPECTRUM_INVALID_FILE_OPTIONS | 500 | A file destination is neither a path nor a file descriptor. |
E_SPECTRUM_INVALID_LINE_OPTIONS | 500 | A JSON-line option is invalid. |
E_SPECTRUM_INVALID_REDACT_PATH | 500 | A redaction path cannot be parsed. |
E_SPECTRUM_INVALID_STRINGIFY_LIMIT | 500 | A serialisation limit is not a positive integer. |
E_SPECTRUM_UNSUPPORTED_OPTION | 500 | A logger option spectrum does not support. |
E_SPECTRUM_LOGGER_NOT_BOUND | 500 | The container resolved something other than a Logger for the Logger token. |
E_SPECTRUM_MISSING_DEFAULT_LOGGER | 500 | A multi-logger config ({ default, loggers }) names no default logger. |
E_SPECTRUM_UNKNOWN_DEFAULT_LOGGER | 500 | The default logger is not declared in loggers. |
E_SPECTRUM_UNKNOWN_LOGGER | 500 | logger.use(name) names a logger that is not in loggers. |
E_SPECTRUM_NOT_BOOTED | — | The services/main logger was used before SpectrumProvider booted. |
E_SPECTRUM_ASSERTION_FAILED | 500 | FakeLogger.assertLogged / assertNotLogged failed: the captured entries do not match. |
E_SPECTRUM_INVALID_PREDICATE | 500 | A FakeLogger assertion was given an empty containing, which would match every entry. |
Station Errors
| Code | HTTP | Description |
|---|---|---|
E_STATION_LOGIN_CREDENTIALS_REQUIRED | 400 | The admin sign-in form was sent without an email or a password. |
E_STATION_LOGIN_IDENTIFIER_TOO_LONG | 400 | The admin sign-in email is longer than 254 characters (RFC 5321); refused before the rate limiter. |
E_STATION_INVALID_CREDENTIALS | 401 | Invalid email or password. |
E_STATION_TOO_MANY_LOGIN_ATTEMPTS | 429 | Too many sign-in attempts; try again later. |
E_STATION_LOGIN_UNAVAILABLE | 503 | Sign-in is temporarily unavailable. |
E_STATION_CSRF_REQUIRED | 403 | An admin action requires an active, verified CSRF token. |
E_VALIDATION_ERROR | 422 | An admin form failed validation (JSON clients; a browser is redirected back). |
E_STATION_NOT_BOOTED | — | The services/main registry was used before StationProvider booted, or before setStation(). |
E_STATION_INVALID_RESOURCE | 500 | defineResource() was given an invalid declaration (entity, name, actions, column lists, formFields, audit, onAuditError). |
E_STATION_DUPLICATE_RESOURCE | 500 | Two resources were registered under the same name. |
E_STATION_UNKNOWN_RESOURCE | 500 | getOrThrow() named a resource that is not registered. |
E_STATION_UNKNOWN_COLUMN | 500 | A resource's list.columns, show.columns or editable names a property that is not a column of the entity. |
E_STATION_COLUMN_NOT_EDITABLE | 500 | editable names a column the framework manages (primary key, timestamp, relation, soft delete) or one formFields hides. |
E_STATION_PRIMARY_KEY_MISSING | 500 | An admin entity declares no @PrimaryKey() column. |
E_STATION_INVALID_CONFIG | 500 | A station option is invalid (audit, permissionPrefix, guard, loginRateLimit). |
E_STATION_UNKNOWN_GUARD | 500 | station.guard names a guard warden does not know. |
E_STATION_GUARD_NOT_JWT | — | The admin guard does not issue a bearer token; Station needs a JWT guard. |
E_STATION_AUTH_REQUIRED | 500 | No working auth binding is registered while requireAuth: true is set, or outside development and test. |
E_STATION_DATABASE_REQUIRED | 500 | No db connection is registered for the admin (register @c9up/atlas/provider). |
E_STATION_RUNE_REQUIRED | 500 | A resource with write forms needs @c9up/rune, which is not installed. |
E_STATION_INKER_REQUIRED | 500 | No @c9up/inker view engine is registered to render the admin. |
E_STATION_INKER_UNUSABLE | 500 | @c9up/inker is registered but does not resolve to a usable view renderer; see cause. |
E_STATION_ROUTE_MIDDLEWARE_UNSUPPORTED | 500 | station.middleware is set but the router's routes have no middleware() method. |
E_STATION_INTERNAL | 500 | An internal invariant broke (the view engine was not initialised); report it as a bug. |
Transit Errors
| Code | HTTP | Description |
|---|---|---|
E_TRANSIT_INVALID_XML | 500 | A provider answered XML that cannot be parsed, or that uses a construct transit refuses. |
E_TRANSIT_PROTECTED_PARAMETER | 500 | A per-request begin()/redirect() callback tried to set or clear a parameter the sign-in owns (state, nonce, the PKCE challenge, client_id, redirect_uri, response_type), or scope through param() instead of the scope methods. |
E_TRANSIT_NOT_BOOTED | 500 | @c9up/transit/services/main was read before the provider booted, or before setTransit(). |
E_TRANSIT_UNKNOWN_PROVIDER | 404 | No provider of this name is registered. The message names only the provider asked for. |
E_TRANSIT_NOT_A_REDIRECT_PROVIDER | 500 | use() / begin() named a directory (LDAP); call authenticate(). |
E_TRANSIT_NOT_A_DIRECTORY | 500 | directory() / authenticate() named a redirect provider; call begin(). |
E_TRANSIT_BEGIN_UNSUPPORTED | 500 | begin() on a driver that has no begin(). |
E_TRANSIT_TOKEN_PROFILE_UNSUPPORTED | 500 | userFromToken() on a driver that cannot read a profile from a token. |
E_TRANSIT_USE_BEGIN | 500 | redirectUrl() on a provider whose redirect needs a round trip (OAuth1, OpenID Connect, SAML); call begin(). |
E_TRANSIT_NO_AUTHORIZE_PARAMS | 500 | A customizer was passed to an OAuth1 or SAML sign-in, which has no per-request scopes or parameters. |
E_TRANSIT_STATE_REQUIRED | 500 | A callback ran without expectedState. |
E_TRANSIT_MISSING_SECRET | 500 | A flow lacks the secret it needs: the secret begin() returned (PKCE verifier, OAuth1 request-token secret), or the token secret an OAuth1 access token signs with. |
E_TRANSIT_PKCE_REQUIRED | 500 | A provider that requires PKCE got no code verifier. |
E_TRANSIT_TOKEN_EXCHANGE_FAILED | 500 | The provider's token endpoint answered an HTTP error. |
E_TRANSIT_NO_ACCESS_TOKEN | 500 | The token response carries no access token. |
E_TRANSIT_PROFILE_REQUEST_FAILED | 500 | The provider's profile or userinfo endpoint answered an HTTP error. |
E_TRANSIT_INVALID_RESPONSE | 500 | A provider's response is not JSON, or not a JSON object. |
E_TRANSIT_NO_EMAIL | 500 | LinkedIn returned no email address; the application needs the r_emailaddress scope. |
E_TRANSIT_CALLBACK_NOT_CONFIRMED | 500 | An OAuth1 provider did not confirm the callback URL. |
E_TRANSIT_NO_REQUEST_TOKEN | 500 | An OAuth1 provider answered without a request token. |
E_TRANSIT_DISCOVERY_FAILED | 500 | OpenID Connect discovery answered an HTTP error. |
E_TRANSIT_INVALID_DISCOVERY | 500 | The discovery document lacks a required field, names another issuer, or gives an endpoint that is not https. |
E_TRANSIT_JWKS_FAILED | 500 | Fetching the provider's JWKS failed, or it has no keys array. Keys older than cache.ttlMs are not used in its place. |
E_TRANSIT_UNKNOWN_SIGNING_KEY | 500 | The id_token names a signing key the provider did not publish. |
E_TRANSIT_UNSUPPORTED_ALGORITHM | 500 | The provider declares only id_token algorithms transit refuses (asymmetric signatures are required). |
E_TRANSIT_NO_ID_TOKEN | 500 | The token response carries no id_token; check that the openid scope is granted. |
E_TRANSIT_INVALID_ID_TOKEN | 500 | The id_token is refused: malformed, bad signature or algorithm, wrong issuer, audience or nonce, expired. |
E_TRANSIT_NO_USERINFO_ENDPOINT | 500 | A profile was asked from a token alone and the provider publishes no userinfo endpoint. |
E_TRANSIT_USERINFO_MISMATCH | 500 | The userinfo response describes another subject than the id_token. |
E_TRANSIT_SAML_REJECTED | 500 | A SAML response or assertion is refused. |
E_TRANSIT_INVALID_SIGNATURE | 500 | An XML signature does not verify, or is not one transit accepts. |
E_TRANSIT_INVALID_BER | 500 | An LDAP message does not encode or decode as BER, or a DN, an attribute or a filter value handed to LdapConnection is not a string. |
E_TRANSIT_QUASAR_MISSING | 500 | A Redis replay store names a quasar connection and @c9up/quasar is not installed, or its provider has not booted. |
E_TRANSIT_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks a command the replay store issues. |
E_TRANSIT_FAKE_NOT_DECLARED | 500 | FakeTransit was asked for a provider no willReturn() declared. |
E_TRANSIT_FAKE_ASSERTION | 500 | A FakeTransit assertion (assertBegan, assertSignedIn, assertNobodySignedIn) failed. |
E_TRANSIT_LDAP_ERROR | 500 | A directory refused or could not be reached. resultCode holds the LDAP result code when the directory answered one; 400 for invalid credentials (49), for an empty login or password, and for one that is not a string (reported as 49). |
E_OAUTH_STATE_MISMATCH | 400 | Unable to verify re-redirect state: the OAuth callback's state is missing or differs from the one stored at redirect time (possible CSRF). Start the sign-in again. |
E_OAUTH_MISSING_CODE | 500 | The OAuth callback came back without its grant (code, oauth_verifier for OAuth1, SAMLResponse for SAML), as when the user denied access. Nothing was sent to the provider. |
E_TRANSIT_INSECURE_ISSUER | 500 | An OpenID Connect issuer is not an https URL (http://localhost excepted). Raised when the driver is built. |
Vellum Errors
Vellum normalises its codes: a code that already starts with E_ is kept, any other gets the E_VELLUM_ prefix.
| Code | HTTP | Description |
|---|---|---|
E_VELLUM_INVALID_PDF | 422 | The bytes are not a PDF vellum can read. |
E_VELLUM_SIGNED_DOCUMENT | 500 | An edit would invalidate the document's signatures; refused unless the caller says they may go. |
E_VELLUM_INVALID_PAGE | 500 | A page number is not a whole number from 1. |
E_VELLUM_INVALID_ROTATION | 500 | A rotation is not a multiple of 90. |
E_VELLUM_EMPTY_MERGE | 500 | merge() was given no document. |
E_VELLUM_EMPTY_SELECTION | 500 | Selecting needs at least one page. |
E_VELLUM_MERGE_FAILED | 500 | Merging documents failed. |
E_VELLUM_SELECT_FAILED | 500 | Selecting pages failed. |
E_VELLUM_SPLIT_FAILED | 500 | Splitting the document failed. |
E_VELLUM_ROTATE_FAILED | 500 | Rotating pages failed. |
E_VELLUM_STAMP_FAILED | 500 | Stamping an image failed. |
E_VELLUM_STAMP_TEXT_FAILED | 500 | Stamping text failed. |
E_VELLUM_FILL_FAILED | 500 | Filling the form failed. |
E_VELLUM_FLATTEN_FAILED | 500 | Flattening the form failed. |
E_VELLUM_RENDER_FAILED | 500 | Rendering a page to an image failed. |
E_VELLUM_EXTRACT_FAILED | 500 | Extracting text failed. |
E_VELLUM_WRITE_FAILED | 500 | Writing the document failed. |
E_VELLUM_SIGN_FAILED | 500 | Signing the document failed. |
E_VELLUM_VERIFY_FAILED | 500 | Verifying the signatures failed. |
E_VELLUM_UNKNOWN_SIGNER | 500 | No signer of this name is configured. |
E_VELLUM_SIGNER_INVALID | 500 | A signer's key or certificate is empty. |
E_VELLUM_TIMESTAMP_FAILED | 500 | Building or reading a timestamp failed. |
E_VELLUM_TIMESTAMP_UNREACHABLE | 500 | The timestamp authority could not be reached. |
E_VELLUM_TIMESTAMP_REFUSED | 500 | The timestamp authority answered with an error status. |
E_VELLUM_FONT_UNREADABLE | 500 | A configured font file cannot be read. |
E_VELLUM_FILE_NOT_FOUND | 500 | A file given by path cannot be read. |
E_VELLUM_INVALID_OPTIONS | 500 | A document, page, table or drawing option, or a ceiling, is invalid, or config/vellum.ts asks for a format other than "png" or "jpeg". |
E_VELLUM_INVALID_COLOR | 500 | A colour cannot be read. |
E_VELLUM_INVALID_IMAGE | 500 | An image cannot be used (unreadable, or opened by another document). |
E_VELLUM_INVALID_SVG | 500 | An SVG cannot be used; pass a file as a URL or as its bytes. |
E_VELLUM_UNSUPPORTED_CONTENT | 500 | A path holds an operator vellum does not draw. |
E_VELLUM_INVALID_STRUCTURE | 500 | A structure element was changed after it ended. |
E_VELLUM_NO_PAGE | 500 | There is no current page; call addPage() first. |
E_VELLUM_NO_FORM | 500 | Form fields were added before initForm(). |
E_VELLUM_DOCUMENT_ENDED | 500 | The document has ended; nothing more can be added to it. |
E_VELLUM_NAPI_REQUIRED | 500 | The Rust PDF engine is not loaded. |
E_VELLUM_NOT_BOOTED | — | The services/main service was used before VellumProvider booted. |
E_VELLUM_TABLE_ENDED | 500 | A row was added to a table after lastRow ended it. |
E_VELLUM_INVALID_LINK | 500 | A link or a named destination cannot be used. |
E_VELLUM_INVALID_OUTLINE | 500 | An outline entry cannot be used. |
E_VELLUM_INVALID_FONT | 500 | A font cannot be used. |
E_VELLUM_NO_FONT | 500 | Text was written before a font was selected. |
E_VELLUM_PAGE_OUT_OF_RANGE | 500 | A page index names no page of the document. |
E_VELLUM_UNBALANCED_RESTORE | 500 | restore() was called without a matching save(). |
E_VELLUM_NOTHING_TO_RESUME | 500 | No text is waiting for a page. |
E_VELLUM_VALIDATION | 500 | The document does not meet its subset (PDF/A, PDF/UA), or a form field or an annotation breaks a PDF rule. |
E_VELLUM_DOCUMENT_BROKEN | 500 | An earlier call failed inside the engine; start a new document. |
E_VELLUM_INTERNAL | 500 | The engine panicked. |
Visa Errors
| Code | HTTP | Description |
|---|---|---|
E_UNAUTHORIZED_ACCESS | 403 | currentAccessToken.authorize() found a token too narrow for the ability asked. 403, not 401: the request is authenticated (insufficient_scope). |
E_VISA_MISSING_ISSUER | 500 | No issuer is configured. |
E_VISA_INVALID_ISSUER | 500 | The issuer is not a URL. |
E_VISA_INSECURE_ISSUER | 500 | The issuer is not https (localhost excepted). |
E_VISA_NO_REDIRECT_URI | 500 | A client was registered without a redirect URI. |
E_VISA_INVALID_REDIRECT_URI | 500 | A redirect URI is not a complete URL. |
E_VISA_INVALID_INITIAL_ACCESS_TOKEN | 500 | registration.initialAccessToken is empty, which would accept an empty bearer token. |
E_VISA_INVALID_SECRET_TTL | 500 | registration.secretTtlSeconds is not a positive whole number of seconds. |
E_VISA_STORE_READ_ONLY | 500 | The client store cannot register clients. |
E_VISA_MISSING_CONFIG | 500 | VisaProvider found no config/visa.ts; run ream configure @c9up/visa. |
E_VISA_NOT_BOOTED | 500 | @c9up/visa/services/main was read before VisaProvider booted, or before setVisa(). |
E_VISA_CREDENTIALS_UNSUPPORTED | 500 | authenticate() with credentials on the visa guard, which only verifies a bearer token. |
E_VISA_NO_TOKEN_CLIENT | 500 | The guard's createToken() ran without tokenClientId: a token is always issued to a client. |
E_VISA_INVALID_RESOURCE | 500 | A protected-resource identifier is not an absolute URI, or carries a fragment (RFC 8707 §2). |
E_VISA_INVALID_CHALLENGE_PARAMETER | 500 | A WWW-Authenticate parameter holds a quote, a backslash or a control character, so it cannot be a quoted string. |
E_VISA_CORRUPT_ROW | 500 | The Atlas store read a column it cannot decode: a list, a date, a string or a client auth method that is not one of the three. |
E_VISA_TEST_AUTHORIZE_FAILED | 500 | The @c9up/visa/testing helper's authorization request was refused; the message carries the OAuth error. |
E_VISA_INTERNAL | 500 | An internal invariant broke: a bug in visa, to report. |
E_VISA_OAUTH_ERROR | 400 | A client's mistake, answered on the wire: oauthCode holds the protocol string (invalid_grant, invalid_client…). 401 for invalid_client and invalid_token, else 400. |
E_VISA_UNREDIRECTABLE | 400 | An authorization failure that cannot be redirected (unknown client or redirect URI): show error to the user. |
E_VISA_INVALID_TTL | 500 | A lifetime is not a positive whole number of seconds: accessTokenTtlSeconds, refreshTokenTtlSeconds, codeTtlSeconds or consentTicketTtlSeconds (checked when the VisaManager is built, and by token() and issueAuthorizationCode() when called directly), or the guard's expiresInSeconds (checked by visaGuard() and on each createToken()). |
Warden Errors
Warden normalises its codes: a code that already starts with E_ is kept, any other gets the E_WARDEN_ prefix.
| Code | HTTP | Description |
|---|---|---|
E_UNAUTHORIZED_ACCESS | 403 | No guard authenticated the request. A guarded route answers with this code. |
E_INVALID_CREDENTIALS | 400 | The credentials do not match. authFinder().verifyCredentials throws it for an unknown account and a wrong password alike, after the same hash work. |
E_WARDEN_AUTH_STRATEGY_ERROR | 500 | Every attempted guard crashed (a database down, a bug): a server incident, distinct from a credential rejection. |
E_WARDEN_MFA_REQUIRED | 403 | The route declares @RequireMfa and the user has not passed the step-up. |
E_AUTHORIZATION_FAILURE | 403 | A bouncer ability or policy denied the action (403 unless the denial gives another status). The exported class carries the denial as error.response, translation included. |
E_WARDEN_UNAUTHORIZED | 401 | The standalone expressMiddleware() found no token or refused it. |
E_WARDEN_AUTH_ERROR | 500 | The standalone expressMiddleware() failed internally. |
E_WARDEN_NO_AUTH_CONFIG | 500 | WardenProvider booted without any guard configured. |
E_WARDEN_NAPI_REQUIRED | 500 | The Rust JWT engine is not loaded. |
E_WARDEN_NOT_BOOTED | 500 | The AuthManager singleton was used before WardenProvider.boot() ran. |
E_WARDEN_AUTH_NOT_REGISTERED | 500 | AuthManager is not in the container; add WardenProvider to the providers. |
E_WARDEN_INVALID_CONFIG | 500 | A guard, token, MFA or rate-limit setting is invalid. |
E_WARDEN_STRATEGY_NOT_FOUND | 500 | A guard name is not configured. |
E_WARDEN_STRATEGY_CANNOT_ISSUE | 500 | issueFor() on a guard that does not mint tokens. |
E_WARDEN_STRATEGY_CANNOT_LOGIN | 500 | login() / logout() on a stateless guard (JWT, API key). |
E_WARDEN_STRATEGY_HAS_NO_CLIENT | 500 | A guard has no authenticateAsClient(), so it cannot forge a client request in tests. |
E_WARDEN_USE_LOGIN | 500 | The session guard has no credential step. Verify the password yourself, then call login(user). |
E_WARDEN_NO_SESSION | 500 | A session guard's login() / logout() ran without ctx.session; register the session middleware first. |
E_WARDEN_REMEMBER_ME_UNAVAILABLE | 500 | Remember-me was asked and no remember-me tokens are configured. |
E_WARDEN_TOKEN_TTL_INVALID | 500 | A token lifetime (a refresh token's TTL, an access token's lifetime) is not a positive finite number; a token lifetime must also be whole seconds. |
E_WARDEN_OTP_STORE_FULL | 500 | The in-memory OTP store holds its maximum of pending challenges. |
E_WARDEN_OTP_STORE_CONTRACT | 500 | The OTP challenge store does not implement take(). |
E_WARDEN_WEBAUTHN_STORE_FULL | 500 | The in-memory WebAuthn challenge store holds its maximum of pending ceremonies. |
E_WARDEN_STORE_TTL_INVALID | 500 | A challenge store ttlMs is not a positive integer. |
E_WARDEN_STORE_LIMIT_INVALID | 500 | A challenge store maxEntries is not a positive integer. |
E_WARDEN_WEBAUTHN_CREDENTIAL_EXISTS | 500 | The WebAuthn credential id is already registered; registration answers { verified: false }. |
E_WARDEN_INVALID_CREDENTIAL | 500 | A stored WebAuthn public key is malformed. |
E_WARDEN_INVALID_ABILITY | 500 | Bouncer.ability() was given options without a callback. |
E_WARDEN_UNKNOWN_ABILITY | 500 | No ability of this name is registered on the bouncer. |
E_WARDEN_UNKNOWN_POLICY | 500 | No policy of this name is registered on the bouncer. |
E_WARDEN_UNKNOWN_POLICY_ACTION | 500 | A policy has no method for the action. |
E_WARDEN_POLICY_RESOLUTION_FAILED | 500 | The container resolved a policy to something that is not an instance of its class. |
E_WARDEN_TEMPLATE_ENGINE_UNUSABLE | 500 | The template engine is installed but @can / @cannot cannot be registered on it. |
E_WARDEN_INVALID_DURATION | 500 | A duration string does not parse, or names an unknown unit. |
E_WARDEN_INVALID_TOTP_SECRET | 500 | The secret given to TotpProvider.generate() / verify() is not base32. |
E_WARDEN_BLACKLIST_REQUIRED | 500 | JwtStrategy.revoke() on a guard built without a blacklist. |
E_WARDEN_STRATEGY_CANNOT_AUTHENTICATE | 500 | authenticate() with credentials on an API key guard; the token goes to verify(). |
E_WARDEN_QUASAR_MISSING | 500 | A Redis token blacklist names a quasar connection and @c9up/quasar is not installed, or its provider has not booted. |
E_WARDEN_INCOMPLETE_CONNECTION | 500 | The quasar connection lacks a command the token blacklist issues (set, exists). |
E_WARDEN_REFRESH_STORE_CONTRACT | 500 | The refresh token driver given to rotateRefreshToken has no consume() or no revokeFamily(). consume(familyId, presentedHash, successor) must replace the family's hash only if it is still the one presented, in one indivisible operation (an UPDATE … WHERE family_id = ? AND hash = ? and its affected row count, or a Lua script on Redis). |
E_WARDEN_EMPTY_GATE_REQUIREMENT | 500 | @Guard(), @Role() or @Permission() names nothing to require (no argument, or only empty names, such as an empty list read from configuration). Thrown when the decorator is applied, at class load, and by warden's middleware for an action whose metadata names nothing, so the action is never read as public. Name at least one guard, role or permission, or remove the decorator. |