Introduce structured error codes.