diff --git a/src/error.ts b/src/error.ts index 718e081..041538c 100644 --- a/src/error.ts +++ b/src/error.ts @@ -5,6 +5,8 @@ export class FetchError extends Error { request?: FetchRequest response?: FetchResponse data?: T + statusCode?: number + statusMessage?: string } export function createFetchError (request: FetchRequest, error?: Error, response?: FetchResponse): FetchError {