in reference-api/unified_handler.go [100:111]
func (deps *HandlerDeps) processAndCacheResponse(
handler http.HandlerFunc,
w http.ResponseWriter,
r *http.Request,
cacheKey string,
) {
rec := &responseRecorder{ResponseWriter: w, statusCode: 0} // Use 0 so that we can catch missing status updates
handler(rec, r)
// Store both status and response body
deps.storeInCache(cacheKey, rec.statusCode, rec.body.Bytes())
}