Back to Blog
Guide

Slack API Error Codes: 18 Errors We Triggered on Purpose

We broke a test Slack app 18 ways on 28 November 2026 and recorded every response: the error string, the HTTP status and the fix. Only one of them came back as anything but HTTP 200.

Slack Green Team
November 28, 2026
November 28, 2026
4 min read
Share:
slack api
slack developers

A Slack Web API error is almost never an HTTP error. Slack answers with HTTP 200 and a JSON body of {"ok": false, "error": "<code>"}, so code that only checks the status code thinks every call worked. Read ok first and branch on the error string. Of the 18 errors below, only ratelimited came back with a different status, HTTP 429 with a Retry-After header.

We triggered every one of them on purpose on 28 November 2026, in a Free test workspace, with a throwaway app and its bot token (xoxb-). Each call was a plain POST to https://slack.com/api/<method>. The table shows what came back, word for word.

The 18 errors we got, with the call that caused them

ErrorHTTPCall that caused itFix
not_authed200chat.postMessage with no token at allSend Authorization: Bearer xoxb-...
invalid_auth200chat.postMessage with a made-up tokenCheck the token is complete and from this workspace
account_inactive200auth.test after auth.revoke on the bot tokenReinstall the app for a new token
missing_scope200reactions.get without reactions:readAdd the scope in needed, then reinstall
not_in_channel200chat.postMessage to a public channel the bot had not joinedInvite the bot, or add chat:write.public
channel_not_found200chat.postMessage to C0123456789Use a real ID the token can see
is_archived200chat.postMessage to an archived channelUnarchive it or post somewhere else
invalid_blocks200A section block with an empty textRead the errors array, it names the field
msg_too_long200chat.update with 4,001 charactersKeep edits at 4,000 characters or less
cant_update_message200Bot calls chat.update on a member's messageOnly the author can edit; post a reply instead
message_not_found200chat.delete with a timestamp that does not existStore the ts that chat.postMessage returned
user_not_found200users.info with U0123456789Look the user up with users.lookupByEmail
file_not_found200files.info with F0123456789The file ID is wrong, deleted, or not shared with you
unknown_method200chat.postMesage (typo)Fix the method name
unknown_method200channels.listThe channels.* methods are gone; use conversations.list
not_allowed_token_type200search.messages with a bot tokenUse a user token (xoxp-) for search
not_allowed_token_type200reminders.list and stars.list with a bot tokenSame: these need a user token
ratelimited429150 parallel users.list callsWait Retry-After seconds (30 for us), then retry

Five of these errors have their own pages, each with a full walk-through: invalid_auth, not_in_channel, missing_scope, channel_not_found and invalid_blocks.

What an error response looks like

Most errors are just the two fields. A few add more, and those extra fields tell you the fix. missing_scope names the scope you need and lists the ones you have:

{
  "ok": false,
  "error": "missing_scope",
  "needed": "reactions:read",
  "provided": "commands,chat:write,app_mentions:read,channels:manage,..."
}

invalid_blocks points at the broken field with a JSON pointer:

{
  "ok": false,
  "error": "invalid_blocks",
  "errors": [
    "failed to match all allowed schemas [json-pointer:/blocks/0/text]",
    "must be more than 0 characters [json-pointer:/blocks/0/text/text]"
  ]
}

And unknown_method echoes back what you called, in req_method, which is how you spot a typo or an old method name in logs.

The headers help too. Every response carried x-oauth-scopes (the scopes the token has) and x-accepted-oauth-scopes (the scopes this method accepts). For chat.postMessage with no token, x-accepted-oauth-scopes said chat:write:bot, so you can read a method's scopes off any failed call.

Never appear "away" on Slack again

Cloud-based. No downloads. Works 24/7 even when your laptop is off.

How to handle Slack errors in code

Check ok, not the status, and retry only ratelimited. This is the loop we ran the tests with, trimmed:

import time, requests

def slack(method, token, **params):
    for attempt in range(5):
        r = requests.post(f"https://slack.com/api/{method}",
                          headers={"Authorization": f"Bearer {token}"},
                          data=params, timeout=30)
        if r.status_code == 429:                       # the only non-200 error
            time.sleep(int(r.headers.get("Retry-After", "1")))
            continue
        body = r.json()
        if not body["ok"]:
            raise RuntimeError(f"{method}: {body['error']} {body.get('needed', '')}")
        return body
    raise RuntimeError(f"{method}: still rate limited")

The official SDKs do the same thing for you. In Python, slack_sdk raises SlackApiError and puts the body in e.response["error"]; its RateLimitErrorRetryHandler sleeps on 429. Our Slack API rate limits guide covers the tiers.

Two surprises: no error where you expect one

A long message does not fail. We expected msg_too_long from chat.postMessage with 50,000 characters. Instead the call returned ok: true, and the channel got 10 separate messages of 4,000 characters each. The same happened with 100,000, 200,000 and 1,000,000 characters: always 10 messages, 40,000 characters in total, and the rest dropped with no warning. The response only shows the first chunk. chat.postEphemeral and chat.scheduleMessage also accepted 50,000 characters. Only chat.update refused, with msg_too_long at 4,001 characters and above. So if you post logs or LLM output, cut it yourself; our message character limit page has the numbers for the composer.

conversations.history was not limited to 1 call a minute. Slack's newer limit for that method applies to apps distributed outside the Marketplace. Our app was installed only in its own workspace, and three back-to-back calls all returned ok: true. The 429 came from users.list: 100 calls in about a minute went through, then 110 of the next 150 parallel calls got ratelimited with Retry-After: 30.

FAQ

Why does Slack return 200 for errors?

The Web API reports method-level failures in the body, so HTTP 200 only means the request reached Slack. In our 18 tests, ratelimited (429) was the one exception. A 5xx from Slack is a real outage; check Slack's status before you debug.

What is the difference between not_authed and invalid_auth?

not_authed means no token reached Slack at all, often a missing header or an empty variable. invalid_auth means a token arrived but Slack does not accept it. A revoked bot token gives a third error, account_inactive.

Is there an official list of all Slack API error codes?

Each method page on docs.slack.dev lists its own errors, but there is no single list. The errors in the table above are the ones that come up across most methods, with the exact call that produced each one.

Always Active

Stop Jiggling Your Mouse.

Join hundreds of remote workers who never worry about their Slack status. Set it up once, stay green forever.

Related Articles

Guide

Slack Canvas Notifications: What Notifies You and What Does Not

We edited a Slack canvas twice from a test app on 28 November 2026, once plainly and once with an @mention, and watched what the other member got. Only the mention notified.

Slack Green Team
Guide

Can You Have More Than One Canvas in a Slack Channel?

We tried to add a second canvas to a channel on a Free Slack workspace on 28 November 2026, from the channel menu and through the API. Both refused. Here is what each route said and what works instead.

Slack Green Team
Guide

Slack Huddle Sounds: Every Sound, What Triggers It, How to Mute

We read the Slack web client and the Mac app on 28 November 2026 and matched every huddle sound to the event that plays it, from the join chime to the Boop Plus ringtone and the 12 lounge music tracks.

Slack Green Team