6989a98d75
- 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
16 lines
573 B
JavaScript
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);
|
|
}
|
|
}
|
|
}
|