MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / statusCodeOverride

Function statusCodeOverride

lib/api/authn/webid-oidc.mjs:169–175  ·  view source on GitHub ↗
(statusCode, req)

Source from the content-addressed store, hash-verified

167 * @returns {number}
168 */
169export function statusCodeOverride (statusCode, req) {
170 if (isEmptyToken(req)) {
171 return 400
172 } else {
173 return statusCode
174 }
175}
176
177/**
178 * Tests whether the `Authorization:` header includes an empty or missing Bearer

Callers

nothing calls this directly

Calls 1

isEmptyTokenFunction · 0.85

Tested by

no test coverage detected