Skip to main content
Invalid principal policy

Invalid principal policy

typehttps://docs.frem.sh/reference/api/errors/invalid-principal-policy
HTTP status400 Bad Request

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • principal_policy must be one of: username, email, anything.

What to do

Correct the principal_policy value - detail names what was wrong.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/invalid-principal-policy",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.