See https://github.com/microsoft/scitt-ccf-ledger/blob/main/app/src/main.cpp#L78 CTS can throw an errors::QueryParameterError when get_query_value() returns false and include the error_reason.