处理 HTTP 错误代码
Dapr HTTP 错误代码的详细参考以及如何处理它们
对于发往 Dapr 运行时的 HTTP 调用,当遇到错误时,会在响应正文中返回一个错误 JSON。该 JSON 包含一个错误代码和一条描述性错误消息。
{
"errorCode": "ERR_STATE_GET",
"message": "Requested state key does not exist in state store."
}
对于发往 Dapr 运行时的 HTTP 调用,当遇到错误时,会在响应正文中返回一个错误 JSON。该 JSON 包含一个错误代码和一条描述性错误消息。
{
"errorCode": "ERR_STATE_GET",
"message": "Requested state key does not exist in state store."
}