mirror of https://github.com/certd/certd
chore:
parent
89686399f9
commit
ee731e4759
|
@ -33,8 +33,8 @@ export class HttpError extends Error {
|
||||||
this.name = error.name;
|
this.name = error.name;
|
||||||
this.code = error.code;
|
this.code = error.code;
|
||||||
|
|
||||||
this.status = error.response?.status;
|
this.status = error.response?.status || error.code;
|
||||||
this.statusText = error.response?.statusText;
|
this.statusText = error.response?.statusText || error.code;
|
||||||
this.request = {
|
this.request = {
|
||||||
baseURL: error.config?.baseURL,
|
baseURL: error.config?.baseURL,
|
||||||
url: error.config?.url,
|
url: error.config?.url,
|
||||||
|
|
Loading…
Reference in New Issue