Skip to main content

Invalid json

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

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • Request body must be valid JSON.
  • Request body must be valid JSON.
  • sbom blob must be valid UTF-8 JSON.

What to do

Send a syntactically valid JSON body and set Content-Type: application/json.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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