Skip to main content

No pattern

typehttps://docs.frem.sh/reference/api/errors/no-pattern
HTTP status400 Bad Request

What it means

A SAST rule has nothing to match.

Example detail messages returned with this error:

  • the rule needs one of pattern, patterns, pattern-either, pattern-regex.
  • a taint rule needs pattern-sources and pattern-sinks.

What to do

Add a pattern, or for mode: taint, pattern-sources and pattern-sinks.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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