Skip to main content

Sample too large

typehttps://docs.frem.sh/reference/api/errors/sample-too-large
HTTP status400 Bad Request

What it means

A SAST rule’s test sample is larger than 16 KiB.

Example detail messages returned with this error:

  • sample is at most 16 KiB.

What to do

Shorten the sample: a few lines that the rule must find are enough.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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