implemented the HEAD request type