Errors

The API uses standard HTTP status codes. Error bodies follow NestJS's default shape:

{
  "statusCode": 404,
  "message": "Filing with provided params does not exist",
  "error": "Not Found"
}
StatusMeaning
400Invalid request body, or both PartnerKey and Bearer sent at once.
401Missing or unknown PartnerKey.
403Not allowed: creating a filing in a state your account isn't enabled for (see enabledStates on GET /partner/me), or creating a filing for another user without admin rights.
404Resource not found, including a filing that belongs to another account.
422A file listed in files on /create-filing wasn't found in storage, usually because the PUT to uploadUrl didn't finish.
429Rate limit exceeded. See Rate limits.
Validation errors

When message is an array instead of a string, each entry describes one invalid field. That shape comes from the request body's validation rules, check it against the field types in the API Reference.

Check status before parsing the body

A non-2xx response still returns JSON, but it's the error shape above, not the resource shape you asked for. Check the status code first.