File size conflict

What the FileSizeConflict error (422 Unprocessable Content) means, the fields it carries, and the endpoints that return it.

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/file-size-conflict. See Errors and status codes for the shape every error shares.

File 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 is declared or already stored with different sizes: 1024, 1031 bytes. An address names one exact file, so declare its exact byte size as stored, the same wherever it appears.

Fields #

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
addressstring
sizesinteger[]

Example #

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