Formats an error message into a webhook JSON payload for the given format.
The webhook payload format (slack/discord/plain).
The error message to include.
JSON string ready to POST.
Formats an error message into a webhook JSON payload for the given format.