mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Add Nostr AI tools
This commit is contained in:
19 files changed
+1671
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user