make the response codes an enum