Skip to main content

Format mismatch

typehttps://docs.frem.sh/reference/api/errors/format-mismatch
HTTP status400 Bad Request

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • Body claims cyclonedx-json but JSON lacks bomFormat/specVersion.
  • Body claims spdx-json but spdxVersion is not SPDX-2.x or SPDX-3.x.

What to do

See detail for the specific cause.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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