// bm's ApiError (src/api/http.ts), for the ported realtime test: it rejects // the stubbed token route with one, and the route answers its status. export class ApiError extends Error { status: number errors: Record constructor(status: number, message: string, errors: Record = {}) { super(message) this.name = 'ApiError' this.status = status this.errors = errors } }