MedicalTrace

Errors

How the demo API reports a rejected call.

Validation errors use HTTP 400. A bad password uses 401. A missing membership or permission uses 403. A missing record, including a record that belongs to another organization, uses 404 so one tenant cannot probe another’s ids.

A duplicate serial for the same manufacturer uses 409:

{ "message": "Serial already registered for manufacturer", "statusCode": 409 }

When a finding cannot be computed, the verification body uses UNKNOWN. That is a successful HTTP response with an incomplete check, not a pass.