add request, response, and logic codes.