Fix type of error codes in CAS server
Description
This was something that was fixed in 1.2 with 300011b2. But at that time, I thought we did not have that issue on master.
This merge request, when approved, will close: #882 (closed)
Edited by Valentin David