Add Nostr AI tools

This commit is contained in:
Alex Gleason committed 2025-08-28 14:12:16 -05:00
1 parent 3fe2c8e9db
commit 027c4f4fd2
19 files changed
+1671

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
/** Error class for HTTP request failures */
export class HTTPError extends Error {
/** The response object from the failed HTTP request */
readonly response: Response;
/** The original request object */
readonly request: Request;
constructor(response: Response, request: Request) {
super(`HTTP Error: ${response.status} ${request.method} ${request.url}`);
this.name = 'HTTPError';
this.response = response;
this.request = request;
}
}