ClosedBit error docs

CB_ERR_API_ROUTE

API route did not match. A local API handler received a method or path it does not serve.

Why it happens

A local API handler received a method or path it does not serve.

How to fix it

Add a route for that method/path or return a clear 404/405 response.

Copy-paste fix pattern
library CB-Networking.API

fn main() {
    string requestMethod = "GET"
    string requestPath = "/status"
    if (CB-Networking.API.match(requestMethod, requestPath, "GET", "/status")) {
        println(CB-Networking.API.ok("ok=true"))
    } else {
        println(CB-Networking.API.error(404, "not found"))
    }
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.