fixed 500 for HEAD method