fix default status code in logger