cv-pls ios Duplicate - the "async await" part is a red herring, OP is interested in allowing empty responses, both answers give the same solution as in the duplicate target - use
emptyResponseCodes
(unfortunately I cannot hammer it as seems I VTC-ed it in the past, with another close reason, and retracted)
How to async await empty response using Alamofire -
Georg 2022-06-22 07:25:26Z