application/problem+json: How Not to Mistake an HTML Error for JSON
A practical guide to RFC 9457: first check the HTTP status and Content-Type, then safely parse Problem Details. Using Python 3.12, we reproduce a correct 422 response, HTML from a gateway, broken JSON, incorrect types, and status mismatches.












