Adding support for API responses with no JSON output. e.g. head(:ok)