11 lines
239 B
TypeScript
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);
|
|
}
|
|
}
|