flask/docs
Solari Systems 9bcad882e6
docs: clarify 415 vs 400 errors for Request.json
Clarify that Request.json raises different error codes:
- 415 Unsupported Media Type: when Content-Type is not application/json
- 400 Bad Request: when body is not valid JSON

This makes the documentation consistent with the API reference
and helps developers understand when each error will occur.

Fixes #5825

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 00:46:26 -05:00
..
_static svg logo 2025-06-12 13:46:49 -07:00
deploying Merge branch '3.0.x' 2024-08-23 16:34:57 -07:00
patterns docs: clarify 415 vs 400 errors for Request.json 2026-01-20 00:46:26 -05:00
tutorial merge app and request context 2025-09-19 16:43:53 -07:00
api.rst merge app and request context 2025-09-19 16:43:53 -07:00
appcontext.rst Docs typo/markup fixes (#5829) 2025-10-14 13:26:26 -07:00
async-await.rst drop support for Python 3.8 2024-10-31 12:30:53 -07:00
blueprints.rst Ensure that blueprint subdomains suffix-chain 2023-01-04 18:06:04 +00:00
changes.rst docs rename changelog to changes 2021-02-24 10:09:38 -08:00
cli.rst Merge branch '2.2.x' 2023-02-15 14:48:09 -08:00
conf.py svg logo 2025-06-12 13:46:49 -07:00
config.rst update docs about fallback order 2025-05-12 18:30:27 -07:00
contributing.rst Fix global CONTRIBUTING link 2025-05-20 12:26:17 -04:00
debugging.rst document passthrough_errors 2023-04-15 11:53:56 -07:00
design.rst Docs typo/markup fixes (#5829) 2025-10-14 13:26:26 -07:00
errorhandling.rst fix typo in errorhandling doc 2023-06-29 17:20:35 -07:00
extensiondev.rst merge app and request context 2025-09-19 16:43:53 -07:00
extensions.rst rewrite extension development docs 2022-06-28 16:28:33 -07:00
index.rst merge app and request context 2025-09-19 16:43:53 -07:00
installation.rst drop end of life python versions 2025-05-13 08:31:54 -07:00
license.rst update project files (#5457) 2024-04-07 10:24:40 -07:00
lifecycle.rst merge app and request context 2025-09-19 16:43:53 -07:00
logging.rst don't access app.logger when configuring app.logger 2024-04-07 12:03:19 -07:00
make.bat update docs for new theme 2019-09-24 06:35:10 -07:00
Makefile update docs for new theme 2019-09-24 06:35:10 -07:00
quickstart.rst merge app and request context 2025-09-19 16:43:53 -07:00
reqcontext.rst merge app and request context 2025-09-19 16:43:53 -07:00
server.rst Update server.rst 2025-06-04 17:24:45 -07:00
shell.rst merge app and request context 2025-09-19 16:43:53 -07:00
signals.rst merge app and request context 2025-09-19 16:43:53 -07:00
templating.rst Merge branch 'stable' 2025-08-19 14:09:56 -07:00
testing.rst merge app and request context 2025-09-19 16:43:53 -07:00
views.rst Fix function argument name 2023-01-23 17:01:49 +02:00
web-security.rst use Jinja name consistently 2025-08-19 10:43:16 -07:00