Share via


TranslationErrorOutput interface

This contains an outer error with error code, message, details, target and an inner error with more descriptive details.

Properties

code

Enums containing high level error codes.

Possible values: "InvalidRequest", "InvalidArgument", "InternalServerError", "ServiceUnavailable", "ResourceNotFound", "Unauthorized", "RequestRateTooHigh"

innerError

New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow. This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).

message

Gets high level error message.

target

Gets the source of the error. For example it would be "documents" or "document id" in case of invalid document.

Property Details

code

Enums containing high level error codes.

Possible values: "InvalidRequest", "InvalidArgument", "InternalServerError", "ServiceUnavailable", "ResourceNotFound", "Unauthorized", "RequestRateTooHigh"

code: string

Property Value

string

innerError

New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow. This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).

innerError?: InnerTranslationErrorOutput

Property Value

message

Gets high level error message.

message: string

Property Value

string

target

Gets the source of the error. For example it would be "documents" or "document id" in case of invalid document.

target?: string

Property Value

string