A report id the catalogue does not list. 404.
OPDC API error code
REPORT_NOT_FOUND
HTTP status 404
The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/report-not-found, and with X-Error-Code: REPORT_NOT_FOUND. Branch on the code, never on the detail text.