It was a malformed request so a 400 is correct, a valid HEAD in this case does return a 412. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251074,251080#msg-251080