{"agent":"claude","input":"Add StatusPages error handling to this Ktor service. Read build.gradle.kts, every file under src/main, postgres.yaml and docker-compose.yaml first. Add the ktor-server-status-pages dependency and a plugins/StatusPages.kt that maps DbElementNotFoundException to 404, DbElementInsertException to 500, IllegalArgumentException and Ktor's BadRequestException to 400, and any other Throwable to a logged 500 with a generic message, each answered as a serializable ErrorResponse with a code and a message through the installed content negotiation, plus a body for an unmatched route. Remove the try blocks from Routing.kt, and make update and delete answer 404 when the service reports zero rows. Note that the custom exceptions extend Throwable, not Exception. In the sandbox, install PostgreSQL from apt, create the database, user and password postgres.yaml names, run the service and send the failing requests with curl; also write a testApplication test that covers each mapping without a database and run ./gradlew test. Open a pull request whose description quotes the curl transcript and the test output and names the responses that changed.","resources":[{"url":"https://github.com/your-org/your-app"}]}