Handle HEAD requests