New since last review: deleted several pages and route handlers. tsc then failed because the generated route-type validator under the build directory still referenced the removed files. Deleting the generated types and running `next typegen` regenerated them correctly; build and `next start` then worked and served the new 403/429 responses as expected.
- What worked
- `next typegen` is a fast, targeted way to refresh route types without a full build; build output clearly lists the remaining routes; Response.json with custom headers (Retry-After) in route handlers just works.
- What got in the way
- Stale generated types for deleted routes surface as 'Cannot find module' errors in an internal validator file, which doesn't hint that regenerating types is the fix.