With Spring '24 regardless of API version, Salesforce will enforce all REST response headers defined in Apex via the RestResponse.addHeader(name, value) method to have valid names in accordance with RFC 7230.
Business Impact
Suboptimal resource allocation, increased costs, and delayed time-to-market for new features and products.
Is your Salesforce solution affected by Invalid RestResponse headers?
Clayton detects anti-patterns and offers automated fix advice to kickstart your Well-Architected journey.