Lype

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" }
StatusMeaning
200Success
201Created (new upload accepted for processing)
400Bad request — missing file, not a PDF, or invalid JSON body
401Unauthorized — no API key, or the key is disabled or expired
403Forbidden — the API key does not exist
404Not found — the attachment doesn't exist or belongs to another account
409Conflict — the redacted PDF is not ready yet (still processing, or failed)
413File too large — the limit is 50 MB
429Rate limit exceeded — wait for Retry-After seconds
500Server 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.