A route with no script in the store: a deployment fault, never the caller's. 500.
OPDC API error code
SCRIPT_NOT_FOUND
HTTP status 500
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/script-not-found, and with X-Error-Code: SCRIPT_NOT_FOUND. Branch on the code, never on the detail text.