@terascope/utils / errors / ElasticsearchError
Interface: ElasticsearchError
Defined in: packages/utils/src/errors.ts:398
Extends
Error
Properties
Property | Type | Defined in |
---|---|---|
body? | object | packages/utils/src/errors.ts:399 |
body.error? | object | packages/utils/src/errors.ts:400 |
body.error.index? | string | packages/utils/src/errors.ts:403 |
body.error.reason? | string | packages/utils/src/errors.ts:402 |
body.error.root_cause? | [{ index : string ; reason : string ; type : string ; }] | packages/utils/src/errors.ts:404 |
body.error.type? | string | packages/utils/src/errors.ts:401 |
index? | string | packages/utils/src/errors.ts:417 |
reason? | string | packages/utils/src/errors.ts:416 |
status? | number | packages/utils/src/errors.ts:414 |
type? | string | packages/utils/src/errors.ts:415 |
Methods
toJSON()
toJSON():
object
Defined in: packages/utils/src/errors.ts:419
Returns
object
msg?
optional
msg:string
response?
optional
response:string
statusCode?
optional
statusCode:number