Skip to main content

Reason too long

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

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • reason must be ≤ {PP_MAX_REASON_LEN} chars.
  • reason must be ≤ {SAST_MAX_REASON} chars.
  • reason must be ≤ {SAST_MAX_REASON} chars.

What to do

Shorten the reason string; detail states the limit.

Response shape

All fremforge API errors are RFC 9457 problem+json:

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

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