Error reference

file_type_blocked

HTTP status
422 Unprocessable Content
Returned by
storage

What it means

The request cannot be processed as sent. The API explains it as: “This kind of file can't be uploaded (programs and scripts are blocked for safety). Put it in a ZIP archive if you need to share it.”

How to fix it

Read the message: it says what to change. If it does not help, contact support with the request_id.

Message

English text, as sent with Accept-Language: en. With ru or uz the API sends the translation.

  • This kind of file can't be uploaded (programs and scripts are blocked for safety). Put it in a ZIP archive if you need to share it.
    RU: Такой файл загрузить нельзя (программы и скрипты заблокированы ради безопасности). Если нужно им поделиться, положите его в ZIP-архив.
    UZ: Bunday faylni yuklab boʻlmaydi (xavfsizlik uchun dasturlar va skriptlar bloklangan). Ulashish kerak boʻlsa, uni ZIP arxivga joylang.

Example response

Response
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json; charset=utf-8
X-Request-Id: req_4f2a9c1e0b7d3a55

{
  "error": {
    "code": "file_type_blocked",
    "message": "This kind of file can't be uploaded (programs and scripts are blocked for safety). Put it in a ZIP archive if you need to share it.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://developers.kweko.uz/errors/file_type_blocked"
  }
}

All error codes · The error format