HTTP status 400. An API key request can get this code.
The path has a trailing /, a . or .. segment, an encoded /, a backslash, or an empty segment that reached the API. Repeated slashes may be normalized before reaching the API.
Recovery
Use the path exactly as the API reference shows it, with no trailing /.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.