add error string to response