跳到主要内容

错误

报错

回包会在请求体 Data 中添加 Error 字段。

请求示例

{
"Head": "stat",
"Data": "/home/a"
}

回包示例

{
"Head": "stat.err",
"Data": {
"Id": "DA40BB9",
"Name": "/home/a",
"IsDir": false,
"Raw": null,
"Path": "/home/a",
"Error": {
"HTTPCode": 404,
"Code": "NotFound.Path",
"Message": "The specified res /home/a is not found.",
"Data": {
"__Message.parameter": "Path",
"__Message.resourceContent": "/home/a",
"__Message.resourceType": "res"
}
}
}
}
[
{
"Code": "FileSizeExceeded.IDE",
"Message": "The size of file {{fileName}} has reached the limit {{limit}}.",
"HTTPCode": 400,
"Comment": "文件内容大小已经超过上限"
},
{
"Code": "TransformNotConcurrentOps.IDE",
"Message": "Transform requires concurrent ops.",
"HTTPCode": 401,
"Comment": "转换需要并发操作"
},
{
"Code": "TransformShortOps.IDE",
"Message": "Transform encountered a short operation sequence.",
"HTTPCode": 402,
"Comment": "变换遇到一个短操作序列"
},
{
"Code": "TransformIncompatibleOps.IDE",
"Message": "Transform failed with incompatible operation sequences.",
"HTTPCode": 403,
"Comment": "使用不兼容的操作序列转换失败"
},
{
"Code": "NotFound.IDE",
"HTTPCode": 404,
"Message": "The specified {{resourceType}} {{resourceContent}} is not found.",
"Comment": "指定的资源找不到"
},
{
"Code": "ComposeInconsecutiveOps.IDE",
"Message": "Compose requires consecutive ops.",
"HTTPCode": 405,
"Comment": "撰写需要连续的操作"
},
{
"Code": "ComposeShortOps.IDE",
"Message": "Compose encountered a short operation sequence.",
"HTTPCode": 406,
"Comment": "撰写遇到的短操作序列"
},
{
"Code": "Revise.IDE",
"Message": "Revise file {{fileName}} error.",
"HTTPCode": 407,
"Comment": "修改文件失败"
},
{
"Code": "ApplyLengthNotMatch.IDE",
"Message": "The base length must be equal to the document length {{opsLength}} != {{docLength}}.",
"HTTPCode": 408,
"Comment": "长度必须等于文档长度"
},
{
"Code": "RevisionNotInHistory.IDE",
"Message": "The revision {{revision}} not in history.",
"HTTPCode": 409,
"Comment": "版本不在历史版本中"
},
{
"Code": "AlreadyExists.IDE",
"Message": "The specified {{resourceType}} {{resourceId}} has already been included.",
"HTTPCode": 410,
"Comment": "指定的资源已存在"
}
]