add documentation for creating response

add documentation for creating response