message: rest request onError
diff: @@ -33,6 +33,7 @@ export class HttpClient {
  const { data } = await this.axios.request(config);
  const { code, message } = data;
  if (code !== 200) {
  + this.options.onError(code, message, data.data);
  throw new Error(message);
  }
  return data.data;
  