add const and response code

- add const and response code