Files
boc/node_modules/http-proxy-middleware/dist/errors.js
T
Bernt 6989a98d75 feat: Passwordless cross-device authentication
- Arkitektur: docs/auth/passwordless-architecture.md
- Backend: iom/quixzoom-auth-service/ (FastAPI + Redis)
- Webb: quixzoom-market-pages/se/login/ (QR-kod + polling)
- App: iom/quixzoom-app/src/features/auth/ (push + deep links)

Flöde: QR-kod → app-godkännande → webb-inloggad
2026-07-07 07:11:50 +00:00

16 lines
573 B
JavaScript

export class HttpProxyMiddlewareError extends Error {
code;
constructor(message, code) {
super(message);
// add custom `code` property
// so this can be used in src/plugins/default/error-response-plugin.ts to determine the status code to return
this.code = code;
// set the correct name for the error class
this.name = this.constructor.name;
// maintain proper stack trace (V8 environments)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
}
}