httpclient: Correctly handle '204 No Content' status

Fixes #2433