Generated by scripts/gen-error-reference.py from the source; do not edit by hand. Codes are part of the public contract: never reused or renumbered. Runtime errors are RFC 9457 application/problem+json and carry the code; startup codes (SWK-E0xx) are raised by registration, build or listen and mean the process should not start.
| Code | Phase | Status | Title | Meaning |
|---|---|---|---|---|
SWK-E001 |
startup | Internal Server Error | Invalid route path | A route pattern is syntactically invalid. |
SWK-E002 |
startup | Internal Server Error | Duplicate route | The same method and path were registered twice. |
SWK-E003 |
startup | Internal Server Error | Ambiguous route | Two route patterns are ambiguous with each other. |
SWK-E004 |
startup | Internal Server Error | Invalid configuration | Configuration failed validation. |
SWK-E005 |
startup | Internal Server Error | Bind failed | Binding the listen address failed. |
SWK-E006 |
startup | Internal Server Error | Missing provider | A handler requires a provider that is not registered. |
SWK-E007 |
startup | Internal Server Error | Duplicate provider | The same provider type was registered twice. |
SWK-E008 |
startup | Internal Server Error | Server failed | The server loop failed. |
SWK-E009 |
startup | Internal Server Error | Provider initialisation failed | A provider factory failed during startup. |
SWK-E010 |
startup | Internal Server Error | Duplicate module | Two modules with the same name share a parent. |
SWK-E011 |
startup | Internal Server Error | Conflicting provider | A provider or export conflicts with another provider visible in the same scope. |
SWK-E012 |
startup | Internal Server Error | Dependency cycle | Provider dependencies form a cycle. |
SWK-E013 |
startup | Internal Server Error | Invalid module | A module name or prefix is invalid. |
SWK-E014 |
startup | Internal Server Error | Invalid export | A module exports a type it neither provides nor re-exports. |
SWK-E015 |
startup | Internal Server Error | Unknown shutdown target | A shutdown hook targets a provider the same module does not register. |
SWK-E016 |
startup | Internal Server Error | Documentation for unknown route | Route documentation refers to a route that is not registered. |
SWK-E017 |
startup | Internal Server Error | Invalid route documentation | Route documentation is invalid or inconsistent (operation id, parameters, responses). |
SWK-E018 |
startup | Internal Server Error | Schema name collision | Two different types share one schema component name. |
SWK-E020 |
startup | Internal Server Error | Configuration source error | A configuration file could not be read or parsed. |
SWK-E021 |
startup | Internal Server Error | Invalid configuration value | A configuration value has the wrong type, or is out of range for its field. |
SWK-E022 |
startup | Internal Server Error | Missing configuration value | A required configuration value is missing. |
SWK-E023 |
startup | Internal Server Error | Unknown configuration key | A configuration key is not recognised (strict mode). |
SWK-E024 |
startup | Internal Server Error | Malformed configuration name | An environment variable, .env line or override key is malformed or conflicts with another. |
SWK-E100 |
runtime | Bad Request | Bad request | The request is malformed. |
SWK-E101 |
runtime | Bad Request | Malformed request path | The request path has a malformed or forbidden percent-encoding. |
SWK-E102 |
runtime | Bad Request | Malformed JSON | The request body is not valid JSON. |
SWK-E103 |
runtime | Bad Request | Invalid query string | The query string could not be parsed into the requested type. |
SWK-E104 |
runtime | Bad Request | Invalid path parameter | A path parameter could not be parsed into the requested type. |
SWK-E105 |
runtime | Bad Request | Request body could not be read | Reading the request body failed. |
SWK-E106 |
runtime | Request Timeout | Request body timed out | The peer stopped sending the request body for longer than body_read_timeout. |
SWK-E110 |
runtime | Unauthorized | Unauthorized | Credentials are missing or invalid. |
SWK-E111 |
runtime | Forbidden | Forbidden | The caller lacks permission. |
SWK-E120 |
runtime | Not Found | Not found | No route or resource matched. |
SWK-E121 |
runtime | Method Not Allowed | Method not allowed | The path exists but not for this method. |
SWK-E130 |
runtime | Conflict | Conflict | The request conflicts with current state. |
SWK-E140 |
runtime | Payload Too Large | Payload too large | The request body exceeds the configured limit. |
SWK-E141 |
runtime | Unsupported Media Type | Unsupported media type | The request media type is not supported. |
SWK-E150 |
runtime | Unprocessable Entity | Unprocessable content | The body is well-formed but does not match the expected shape. |
SWK-E160 |
runtime | Too Many Requests | Too many requests | The caller is rate limited. |
SWK-E170 |
runtime | Internal Server Error | Internal server error | An unexpected internal error occurred. |
SWK-E171 |
runtime | Internal Server Error | Request body already consumed | A handler tried to read the request body twice. |
SWK-E172 |
runtime | Internal Server Error | Service not registered | A service was requested at runtime but is not registered. |
SWK-E180 |
runtime | Service Unavailable | Service overloaded | The server is at its in-flight request limit. |
SWK-E181 |
runtime | Gateway Timeout | Deadline exceeded | The handler deadline elapsed. |
The CLI reports these codes in its --format json envelope; each also maps to a stable process exit code. Codes in use: SWKC-001, SWKC-002, SWKC-003, SWKC-010, SWKC-011, SWKC-012, SWKC-013, SWKC-020, SWKC-030, SWKC-031, SWKC-032, SWKC-033, SWKC-034, SWKC-035, SWKC-040, SWKC-060, SWKC-100, SWKC-102, SWKC-103, SWKC-104, SWKC-105, SWKC-106, SWKC-107, SWKC-110, SWKC-111, SWKC-112, SWKC-120, SWKC-121, SWKC-200, SWKC-201, SWKC-210, SWKC-211, SWKC-213, SWKC-214, SWKC-215, SWKC-220, SWKC-221. Their messages are produced by the command that raises them (steelwake <command> --format json); the numbering is stable.