export default class MiddlewareError extends Error { /** Response code */ status: number; /** Related route location */ location: string | undefined; /** Array of errors */ errors: string[]; /** Props to pass back */ props: { show404?: boolean; show500?: boolean; }; constructor(status: MiddlewareError['status'], location: MiddlewareError['location'], errors?: MiddlewareError['errors'], props?: MiddlewareError['props']); }