Ensuring the response content type is correct