fallbackFor: (
status: any,
matched: any,
) =>
| ""
| "STS-HTTP-0001"
| "STS-HTTP-0002"
| "STS-HTTP-0003"
| "STS-HTTP-0004" = fallbackFor
Type Declaration
-
- (
status: any,
matched: any,
):
| ""
| "STS-HTTP-0001"
| "STS-HTTP-0002"
| "STS-HTTP-0003"
| "STS-HTTP-0004"
-
Returns "" | "STS-HTTP-0001" | "STS-HTTP-0002" | "STS-HTTP-0003" | "STS-HTTP-0004"
STS-HTTP-0001 for an unrouted 404, -0004 for a 413, -0003 for a 5xx,
-0002 for another 4xx, and '' below 400
Chooses the generic code for a failed HTTP response nothing marked.