The REST API Gateway returns error responses conforming to RFC 9457 — Problem Details for HTTP APIs.
Every error response uses content type application/problem+json:
{
"type": "https://github.com/cuioss/nifi-extensions/blob/main/doc/reference/error-reference.adoc#unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or malformed Authorization header"
}The type field links to the matching anchored section of this documentation page (e.g. #unauthorized). The fragments below match the anchors emitted by the ProblemDetail record (ProblemDetail.TYPE_*).
| Status | Title | When Returned | Example detail value |
|---|---|---|---|
400 |
Input sanitization failed: malformed path, query parameters, or headers detected by cui-http security pipelines |
|
|
401 |
Missing or invalid Bearer token. Includes |
|
|
403 |
Valid token but missing required scopes (RFC 6750 Section 3.1). Includes |
|
|
403 |
Forbidden |
Valid token but missing required roles for the matched route |
|
404 |
No route configured for the requested path |
|
|
405 |
Route exists but the HTTP method is not in the allowed set. Includes |
|
|
409 |
Returned by the |
|
|
413 |
Request body exceeds the configured |
|
|
422 |
Request body fails JSON Schema validation (when a route specifies |
|
|
500 |
Unexpected internal error during request processing. Full stack trace logged via |
|
|
503 |
Request queue is full (back-pressure). The NiFi flow cannot keep up with incoming requests. |
|
Authentication failures include the WWW-Authenticate header per RFC 6750:
| Scenario | Header Value |
|---|---|
Missing token |
|
Invalid token |
|
Insufficient scope |
|
When a route has JSON Schema validation enabled, the 422 response includes a violations array:
{
"type": "...",
"title": "Unprocessable Content",
"status": 422,
"detail": "Request body failed JSON Schema validation",
"violations": [
{
"pointer": "/name",
"message": "required property 'name' not found"
},
{
"pointer": "/age",
"message": "Value is [string] but should be [integer]"
}
]
}Each violation contains a RFC 6901 JSON Pointer and a human-readable message.
JWT infrastructure messages are logged through de.cuioss.nifi.jwt.JwtLogMessages in the format JWT-<identifier>: <message>. The entries below are the ones this documentation set refers to explicitly; JwtLogMessages is the authoritative and complete list.
| Identifier | Level | Message Template | When Logged |
|---|---|---|---|
WARN |
Issuer %s configures name '%s' but no 'issuer'. 'name' is no longer read as the issuer identifier; set 'issuer' to the identity provider's 'iss' claim value |
An issuer declares |