mirror of https://github.com/zulip/zulip.git
ebfe9637c8
Updates the API error response when there is an unknown or deactivated user in the `principals` parameter for either the `/api/subscribe` or `/api/unsubscribe` endpoints. We now use the `access_user_by_email` and `access_user_by_id` code paths, which return an HTTP response of 400 and a "BAD_REQUEST" code. Previously, an HTTP response of 403 was returned with a special "UNAUTHORIZED_PRINCIPAL" code in the error response. This code was not documented in the API documentation and is removed as a potential JsonableError code with these changes. Fixes #26593. |
||
---|---|---|
.. | ||
include | ||
api-doc-template.md | ||
api-keys.md | ||
changelog.md | ||
client-libraries.md | ||
configuring-python-bindings.md | ||
construct-narrow.md | ||
create-scheduled-message.md | ||
create-stream.md | ||
deploying-bots.md | ||
http-headers.md | ||
incoming-webhooks-overview.md | ||
incoming-webhooks-walkthrough.md | ||
index.md | ||
installation-instructions.md | ||
integrations-overview.md | ||
missing.md | ||
non-webhook-integrations.md | ||
outgoing-webhooks.md | ||
real-time-events.md | ||
rest-error-handling.md | ||
rest.md | ||
roles-and-permissions.md | ||
running-bots.md | ||
send-message.md | ||
sidebar_index.md | ||
writing-bots.md |