Error Codes
API error codes and their meanings
The Lype API uses standard HTTP status codes. Error responses have a JSON body with an error message:
{ "error": "Redacted PDF is not ready yet" }| Status | Meaning |
|---|---|
| 200 | Success |
| 201 | Created (new upload accepted for processing) |
| 400 | Bad request — missing file, not a PDF, or invalid JSON body |
| 401 | Unauthorized — no API key, or the key is disabled or expired |
| 403 | Forbidden — the API key does not exist |
| 404 | Not found — the attachment doesn't exist or belongs to another account |
| 409 | Conflict — the redacted PDF is not ready yet (still processing, or failed) |
| 413 | File too large — the limit is 50 MB |
| 429 | Rate limit exceeded — wait for Retry-After seconds |
| 500 | Server error — contact support |
Processing failures happen after upload and are reported through the attachment's failed status, not an HTTP error. See How PHI removal works.