API Tests: Skip content length validation for certain responses

Depends on #212
Skip Content-Length validation for:
* responses coming from HEAD requests
* responses that have a status code of 204

This matches the behavior of uwsgi