파일 크기 충돌

FileSizeConflict 오류(422 처리할 수 없는 콘텐츠)의 의미와 포함된 필드, 이 오류를 반환하는 엔드포인트를 알아보세요.

이 문제가 발생하면 API는 422 Unprocessable Content 응답을 반환합니다. type 값은 https://lingo.dev/docs/api/errors/file-size-conflict입니다. 모든 오류에 공통으로 적용되는 구조는 오류 및 상태 코드를 참고하세요.

파일 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08은 크기가 2바이트로 선언되었거나 이미 저장되어 있어, 지정한 크기와 다릅니다. 하나의 주소는 정확히 하나의 파일을 가리키므로, 저장된 파일의 정확한 바이트 크기를 모든 곳에서 동일하게 선언하세요.

필드 #

본문에는 표준 멤버 type, status, title, detail 외에 다음 필드가 포함됩니다. detail 텍스트는 이 필드를 바탕으로 생성되므로, 클라이언트에서 자체 문구로 대체해 표시할 수 있습니다.

필드자료형
addressstring
sizesinteger[]

예시 #

JSON
{
  "detail": "File 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 is declared or already stored with different sizes: 2 bytes. An address names one exact file, so declare its exact byte size as stored, the same wherever it appears.",
  "address": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "sizes": [
    2
  ],
  "type": "https://lingo.dev/docs/api/errors/file-size-conflict",
  "status": 422,
  "title": "File size conflict"
}