added error message to send_response