use enum members instead of numbers for http codes