Files
blog-manager/lib/errors.ts
2026-11-01 13:23:44 -05:00

11 lines
239 B
TypeScript

/** An error that maps directly onto an HTTP response (see lib/http.ts). */
export class HttpError extends Error {
constructor(
public status: number,
message: string,
public details?: unknown
) {
super(message);
}
}