Set the ResultCode to match the web client. Refs #179