Summary
The webhook detail, update, and delete endpoints should return 404 when the requested webhook ID does not exist rather than a generic 500. An integration test should call each endpoint with a non-existent ID and confirm the 404 response and error shape.
Scope
- Call GET, PATCH, and DELETE for a webhook ID that does not exist in the database
- Assert each returns status 404
- Assert each response body contains an
error field with a descriptive message identifying the resource as not found
- Assert the message does not leak internal details such as table names or SQL errors
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The webhook detail, update, and delete endpoints should return 404 when the requested webhook ID does not exist rather than a generic 500. An integration test should call each endpoint with a non-existent ID and confirm the 404 response and error shape.
Scope
errorfield with a descriptive message identifying the resource as not foundAcceptance Criteria
errorfieldETA: 12 hours
Coordinate on Telegram