Skip to main content

Invalid environment

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

What it means

The environment field of an SBOM upload is not one of the four environment classes.

Example detail messages returned with this error:

  • environment must be one of sandbox, development, test, production.

What to do

Send sandbox, development, test or production, or leave the field out. The class is shown in the component inventory and does not change retention or any gate.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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