Skip to main content

Invalid source

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

What it means

The rule or check source is missing or is not text.

Example detail messages returned with this error:

  • source (the OpenGrep rule, YAML) is required.
  • source must be text.
  • source (the Rego check) is required.

What to do

Send the rule or check as text in source.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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