From de6a4ba76812e9669b9a9b38b61c4d25744208e4 Mon Sep 17 00:00:00 2001 From: Sunil Kushwaha Date: Tue, 23 Dec 2025 13:35:15 +0530 Subject: [PATCH] Docs: explain 415 error when receiving JSON --- docs/api.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index d3c517f1..a25f0afd 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -30,6 +30,12 @@ Incoming Request Data :members: :inherited-members: :exclude-members: json_module +.. note:: + + When receiving JSON data, Flask expects the request to include the + ``Content-Type: application/json`` header. If the header is missing or + the body cannot be parsed as JSON, Flask may return a + **415 Unsupported Media Type** error. .. data:: request