Invalid languages
type | https://docs.frem.sh/reference/api/errors/invalid-languages |
| HTTP status | 400 Bad Request |
What it means
A SAST rule’s languages is missing, too long, or names a language fremforge does not support for custom rules.
Example detail messages returned with this error:
- languages: 1 to 5 of bash, c, cpp, csharp, dockerfile, generic, go, html, java, javascript, json, kotlin, php, python, ruby, rust, scala, swift, terraform, typescript, yaml.
What to do
List 1 to 5 of the supported languages.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/invalid-languages",
"title": "Bad Request",
"status": 400,
"detail": "..."
}Branch on type, not on title or detail - those are human-readable and may be reworded.