400 | UPL-4000
| Uploads are only available for cloud-hosted (online) practices. A practice connected through Halo Connect (on-premise) receives a 400 with the message File uploads are only available for online organisations. |
400 | MOD-4266
| The practice's data model is older than V13, which uploads require. The message names the required version and the practice's current version. The practice needs an upgrade, so do not retry. |
400 | UPL-4000
| Business-rule validation failure: file size over 50 MB, more than 1 file per request, a blocked or double file extension, or a content_type not in the allowed list. Confirmed live for all four; returned immediately at Upload Initiate, not deferred to upload processing. |
400 | UPL-4000
| The patient_id does not exist in this organisation. The message is Patient not found in this organisation. Confirmed live. This rejection does not count towards the rate limit below. |
400 | UPL-4002
| The file name, together with the patient's document folder name, is too long to store (limit 1,024 bytes). Use a shorter file name. This rejection does not use an upload rate limit slot. |
422 | (none) | Required field missing or wrong type (schema validation), including a numeric value outside its schema-level range (for example patient_id below 1 or above 999999999, or a non-positive size_bytes). Confirmed live: these return 422 with no support_code. Only the file-size business rule (over 50 MB) returns 400 with UPL-4000; see that row above. |
429 | UPL-4291
| Upload rate limit exceeded. The message begins Upload rate limit exceeded: maximum 50 files per hour per organisation. The limit is 50 files per clock hour in Australian Eastern Time (AEST or AEDT), per organisation, shared by all integrators on the practice. Only requests that pass validation count: a request rejected with 400 (file name, type, size, file name too long, or patient not found) does not use a slot. The response carries a Retry-After header and retry_after_seconds, giving the seconds until the next hour. |
502 | UPL-5021
| The upload could not be prepared. It is safe to retry: a retry starts a new upload. |
503 | UPL-5031, UPL-5033, UPL-5035 or SVC-503
| The upload service or the practice database is temporarily unavailable (UPL-5031: cannot be reached, UPL-5033: connection limit reached, UPL-5035: scheduled maintenance). When a Retry-After header is present, wait that many seconds before retrying; otherwise retry after a short delay. |