use client_error instead of client_result