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: “Attach images, PDFs, office documents, text or archives. Programs, scripts and web pages can't be sent.”

How to fix it

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

Messages

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

  • Attach images, PDFs, office documents, text or archives. Programs, scripts and web pages can't be sent.
    RU: Прикрепляйте изображения, PDF, офисные документы, текст или архивы. Программы, скрипты и веб-страницы отправить нельзя.
    UZ: Rasm, PDF, ofis hujjatlari, matn yoki arxiv biriktiring. Dastur, skript va veb-sahifalarni yuborib boʻlmaydi.
  • 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": "Attach images, PDFs, office documents, text or archives. Programs, scripts and web pages can't be sent.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://docs.kweko.uz/errors/file_type_blocked"
  }
}

All error codes · The error format