Skip to content

Type Alias: IErrorCode ​

ts
type IErrorCode = 
  | "content_required"
  | "username_required"
  | "name_required"
  | "search_query_required"
  | "image_required"
  | "invalid_user_id"
  | "invalid_friendship_id"
  | "invalid_blocked_id"
  | "invalid_server_id"
  | "invalid_channel_id"
  | "invalid_category_id"
  | "invalid_role_id"
  | "invalid_parameters"
  | "channel_id_required"
  | "invalid_preferences"
  | "invalid_location"
  | "invalid_location_search"
  | "refresh_token_required"
  | "invalid_refresh_token"
  | "invalid_token"
  | "invalid_token_type"
  | "invalid_or_expired_token"
  | "session_login_required"
  | "push_unavailable"
  | "not_found"
  | "user_not_found"
  | "server_not_found"
  | "channel_not_found"
  | "category_not_found"
  | "message_not_found"
  | "pin_not_found"
  | "role_not_found"
  | "member_not_found"
  | "activity_not_found"
  | "auth_method_not_found"
  | "sign_in_not_found"
  | "last_channel_member"
  | "already_member"
  | "not_a_member"
  | "owner_cannot_leave"
  | "already_pinned"
  | "cannot_create_private_channel_with_yourself"
  | "can_only_message_friends"
  | "messaging_blocked"
  | "buzz_not_allowed"
  | "buzz_cooldown"
  | "member_already_has_role"
  | "member_does_not_have_role"
  | "cannot_delete_role"
  | "system_role_locked"
  | "permission_not_held"
  | "role_name_taken"
  | "username_taken"
  | "email_taken"
  | "auth_method_already_linked"
  | "auth_method_taken"
  | "no_password_method"
  | "last_auth_method"
  | "remote_object_readonly"
  | "user_banned"
  | "can_only_invite_friends"
  | "invite_already_sent"
  | "invite_not_found"
  | "invite_no_longer_valid"
  | "ban_not_found"
  | "slow_mode"
  | "channel_full"
  | "group_too_large"
  | "not_in_call"
  | "activity_in_progress"
  | "invite_link_not_found"
  | "invite_link_expired"
  | "gifs_disabled"
  | "polls_not_allowed"
  | "poll_not_found"
  | "poll_closed"
  | "insufficient_permissions"
  | "unauthorized"
  | "account_denied"
  | "account_pending"
  | "remote_account"
  | "rate_limited"
  | "email_verification_cooldown"
  | "ip_banned"
  | "federation_disabled"
  | "federation_instance_blocked"
  | "federation_instance_unreachable"
  | "federation_signature_invalid"
  | "instance_pending_approval"
  | "guid_conflict"
  | "network_error"
  | "failed_to_delete_message"
  | "gif_provider_unavailable"
  | "search_unavailable"
  | "location_provider_unavailable"
  | "internal_server_error";

Defined in: types/errors.ts:9

error codes for API responses -used for i18n and consistent error handling across all endpoints

Released under the GNU Affero General Public License v3.0.