Handle HEAD request