initial commit
This commit is contained in:
10
lib/errors.ts
Normal file
10
lib/errors.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/** 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user