Use when: shaping Payload endpoint responses, adding CORS headers, or handling validation and error cases consistently.