Docs: explain 415 error when receiving JSON
This commit is contained in:
parent
2579ce9f18
commit
de6a4ba768
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue