add response code

1. add response code
2. modify the return value of query functions