Skip to main content
The API never returns HTML error pages or ad-hoc JSON to programmatic clients. Every error is a RFC 9457 problem document — a stable machine contract that tells a caller what failed, whether to retry, and what to do next. This is what makes errors agent-friendly: an AI client can branch on the fields without parsing prose.

The shape

Core members type, title, and status are always present. type is a stable URI you can branch on — it won’t change once shipped.

Agent extensions

When relevant, problems carry extra members so you can react without parsing prose:

Common statuses

Handling in the SDK

In the SDK, non-2xx responses throw OnlyFansAPIError. See Handling errors for the pattern and what the common OnlyFans responses mean.