getProblemType
获取一个顶层错误码
返回一个 code 的注册表条目。未知 code 为 404 NOT_FOUND,不是 422 —— 路径参数是查找键,不是封闭枚举。
get
/v2/problems/{code}无需凭据(匿名可调 —— 不需要 API 密钥)
参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
code 必填 | string | path | 注册表中的顶层错误码(UPPER_SNAKE)。 |
响应
codestring必填顶层错误码。UPPER_SNAKE。
descriptionstring必填英文说明。不得用作判别条件。
domainstring必填类型 URI 的域段。
枚举platformcatalogmemoderationnewsstoreobjectstring必填类型判别字段。恒为 problem_type。
枚举problem_typestatusintegerint64 必填此 code 绑定的 HTTP 状态。每个 code 对应一个状态。
titlestring必填本类型的稳定英文短语。不随请求变化。
typestringuri 必填问题类型 URI。路径最后一段是 code 的 kebab-case 形式。
请求示例
cURL
curl "https://api.nextmoe.dev/v2/problems/value"