400 — malformed JSON
The request body did not parse as JSON. The error body always carries a code, message, and HTTP status.
curl -X POST "$ENGINE/v1/tenants/$T/sql" \
-H "Authorization: Bearer $OC_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sql": "SELECT 1",}' {
"error": "invalid_json",
"message": "trailing comma at byte offset 18",
"status": 400
}