# HL7_REJECTED

Canonical page: https://docs.ovok.com/errors/hl7-rejected

**HTTP 502.** Problem type: [`https://docs.ovok.com/errors/hl7-rejected`](https://docs.ovok.com/errors/hl7-rejected).

## What this means [#what-this-means]

The hospital system received the HL7 message and refused it: its acknowledgement was not an accept (`AA` or `CA`), or was not an HL7 message at all. You see this in the connection's delivery log, not in a user request.

## Troubleshooting [#troubleshooting]

1. Ask the hospital's interface analyst for the reason their system gave for the refusal. It is in their logs, with the message's control id (MSH-10), which is the Observation's id.
2. Agree the fix with them: most refusals are a patient the hospital cannot match, or a code or field their system expects differently.
3. Fix the data or mapping, then resend the reading if it matters. Ovok retries for about 34 minutes, but the same message is refused the same way.

## Retry safely [#retry-safely]

Retrying is safe. A resent reading carries the same control id, so the hospital can drop a repeat.

## If the problem persists [#if-the-problem-persists]

Share the HTTP status, problem `type`, request path, response timestamp and `traceId` with your administrator or support contact. Remove access tokens, provider secrets and patient data first. The [Error responses guide](/errors) explains the response fields, and the [machine-code registry](/errors/machine-codes) lists every endpoint-specific type.
