Fixing implementation of HEAD request to query interface endpoint