Skip to main content

Sample not matched

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

What it means

The sample you sent with a custom pattern is not matched by its regex. The sample is never stored.

What to do

Fix the pattern or the sample.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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