Payload 自定义标头无效

Moses Skoda工程师预计阅读 1 分钟

API 返回此问题时,响应状态为 422 Unprocessable Content。其 type 为 https://lingo.dev/docs/api/errors/payload-custom-headers-invalid。有关所有错误的通用结构,请参阅错误和状态码。

自定义标头的 HTTP 标头名称不能是 Authorization 或 Accept,且标头值必须在同一行内。

字段#

此问题仅包含标准成员。

示例#

json
{
  "detail": "Custom headers need HTTP header names other than Authorization and Accept, and values on one line.",
  "type": "https://lingo.dev/docs/api/errors/payload-custom-headers-invalid",
  "status": 422,
  "title": "Payload custom headers invalid"
}