implement response
add error sample