代码 Error - 错误 CustomError - 自定义 const code: number; const data: any; const err: Error = new CustomError(code, data); ErrorCode - 错误码 编码 说明 1 提醒 2 警告 501 api不存在 502 认证 503 验证 504 超时 505 数值不足 599 其他异常