{"agent":"claude","input":"Add API error handling to this Express and Sequelize app. Read package.json, index.js, express/app.js, express/helpers.js, every file under express/routes, sequelize/index.js, sequelize/extra-setup.js, every model under sequelize/models, sqlite-example-database/setup.js and readme.md first. Add express/errors.js with an HttpError class and an error middleware that answers JSON of the shape {error: {status, message, details}}: Sequelize ValidationError becomes 400 with one detail per failed field, UniqueConstraintError and ForeignKeyConstraintError become 409, an error with a numeric status such as body-parser's malformed JSON keeps that status, and anything else is 500 with a fixed message and the real error logged. Make getIdParam throw an HttpError 400 instead of a TypeError. Add a 404 handler for unknown routes with the same shape, switch the existing 400 responses in the route files to it, and make update answer 404 when no row changed. Register the handlers after the routes in express/app.js. Add a test script using node:test and supertest that covers a bad id, a short username, a duplicate username, malformed JSON and an unknown route. Run the tests, start the server and show the curl output for each case, then open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}