use send_erroe not write_error