Skip to main content

Invalid purpose

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

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • purpose must match /^[a-z][a-z0-9-]{0,30}$/ (lowercase, e.g. “release”).

What to do

Correct the purpose 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-purpose",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

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