fix history rotate
change response code in case content size is too big with detect-error on
fix logging