204 No Content does not return any content and thus, according to the HTTP specification, does not require a Content-Type. None of the examples in RFC 7644 include a Content-Type for 204 responses, even if they do for 200 responses.
Therefore, we should not check it on 204 responses, the header should be ignored.
204 No Content does not return any content and thus, according to the HTTP specification, does not require a Content-Type. None of the examples in RFC 7644 include a Content-Type for 204 responses, even if they do for 200 responses.
Therefore, we should not check it on 204 responses, the header should be ignored.