Skip to main content

Invalid git ref

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

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • git_ref, when provided, must match /^refs\/[A-Za-z0-9._/-]{1,250}$/.

What to do

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

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