Docs: explain 415 error when receiving JSON

This commit is contained in:
Sunil Kushwaha 2025-12-23 13:35:15 +05:30 committed by GitHub
parent 2579ce9f18
commit de6a4ba768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,12 @@ Incoming Request Data
:members: :members:
:inherited-members: :inherited-members:
:exclude-members: json_module :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 .. data:: request