HH-45307 add send_error implementation for backwards compatibility