ClosedBit error docs

CB_ERR_SECURITY_POLICY

Security policy blocked the operation. Authentication, RBAC, rate limiting, token validation, or a sandbox policy denied the request.

Why it happens

Authentication, RBAC, rate limiting, token validation, or a sandbox policy denied the request.

How to fix it

Check the role, token, permission, and rate-limit rule before retrying.

Copy-paste fix pattern
library CB-Security.RBAC

fn main() {
    string userRole = "consumer"
    if (CB-Security.RBAC.matches(userRole, "admin")) {
        println("allowed")
    } else {
        println("blocked")
    }
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.