add const and response code