{"version":"2.1.336","anchor":"gateway-rejects-non-header-safe-text-values","canonical_anchor":"gateway-rejects-non-header-safe-text-values","heading":"Gateway now rejects values with characters that cannot go in a header","tier":"notice","area":"Elsewhere","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/gateway-rejects-non-header-safe-text-values","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Gateway now rejects values with characters that cannot go in a header\n\nThe gateway now returns an error when certain fields contain characters that cannot be sent in a request header.\n\n**Unclear.** It is not clear which fields this check covers.\n\n**What**\n\nThe gateway now checks certain fields for characters that cannot be sent in a request header, the part of a web request that carries settings. If a value fails, it returns a `400` error of type `invalid_request_error` with the message \"must be text that a header can hold\".\n\n**Why**\n\nRequests with unusual characters in those fields now fail straight away with a clear message instead of failing further along.\n\n- Area: Elsewhere\n- Names: `invalid_request_error`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: yes"}