forked from mtusi2026/mtusi2026lab3
The platform settings default the instance id to the container hostname, computed once per process, so every gunicorn worker of a replica reports the same value and it matches docker ps. The request pipeline stamps X-Instance-Id next to X-Request-Id on every response it sends, and the unhandled error handler adds it itself, because the 500 answer is produced outside the pipeline. Own tests cover 200, 204, 400, 401, 404, the hidden 405, 413 and 500 with a fixed instance id, and the hostname default. The application version follows the contract version 1.3.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>