MCPcopy Create free account
hub / github.com/effect-app/libs / constructor

Method constructor

packages/infra/src/internal/auth.ts:29–35  ·  view source on GitHub ↗
(message = "Invalid Request", useErrorCode = true)

Source from the content-addressed store, hash-verified

27 override readonly statusCode = 400
28
29 constructor(message = "Invalid Request", useErrorCode = true) {
30 super(message)
31 this.code = useErrorCode ? "invalid_request" : ""
32 if (useErrorCode) {
33 this.headers = getHeaders(this.code, this.message)
34 }
35 }
36}
37
38export class InvalidTokenError extends UnauthorizedError {

Callers

nothing calls this directly

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected