Type alias LemmyErrorType

LemmyErrorType: {
    error: "report_reason_required";
} | {
    error: "report_too_long";
} | {
    error: "not_a_moderator";
} | {
    error: "not_an_admin";
} | {
    error: "cant_block_yourself";
} | {
    error: "cant_block_admin";
} | {
    error: "couldnt_update_user";
} | {
    error: "passwords_do_not_match";
} | {
    error: "email_not_verified";
} | {
    error: "email_required";
} | {
    error: "couldnt_update_comment";
} | {
    error: "couldnt_update_private_message";
} | {
    error: "cannot_leave_admin";
} | {
    error: "no_lines_in_html";
} | {
    error: "site_metadata_page_is_not_doctype_html";
} | {
    error: "pictrs_response_error";
    message: string;
} | {
    error: "pictrs_purge_response_error";
    message: string;
} | {
    error: "pictrs_caching_disabled";
} | {
    error: "image_url_missing_path_segments";
} | {
    error: "image_url_missing_last_path_segment";
} | {
    error: "pictrs_api_key_not_provided";
} | {
    error: "no_content_type_header";
} | {
    error: "not_an_image_type";
} | {
    error: "not_a_mod_or_admin";
} | {
    error: "no_admins";
} | {
    error: "not_top_admin";
} | {
    error: "not_top_mod";
} | {
    error: "not_logged_in";
} | {
    error: "not_higher_mod";
} | {
    error: "not_higher_admin";
} | {
    error: "site_ban";
} | {
    error: "deleted";
} | {
    error: "banned_from_community";
} | {
    error: "couldnt_find_community";
} | {
    error: "couldnt_find_person";
} | {
    error: "couldnt_find_comment";
} | {
    error: "couldnt_find_comment_report";
} | {
    error: "couldnt_find_post_report";
} | {
    error: "couldnt_find_private_message_report";
} | {
    error: "couldnt_find_local_user";
} | {
    error: "couldnt_find_person_mention";
} | {
    error: "couldnt_find_registration_application";
} | {
    error: "couldnt_find_comment_reply";
} | {
    error: "couldnt_find_private_message";
} | {
    error: "couldnt_find_activity";
} | {
    error: "person_is_blocked";
} | {
    error: "community_is_blocked";
} | {
    error: "instance_is_blocked";
} | {
    error: "downvotes_are_disabled";
} | {
    error: "instance_is_private";
} | {
    error: "invalid_password";
} | {
    error: "site_description_length_overflow";
} | {
    error: "honeypot_failed";
} | {
    error: "registration_application_is_pending";
} | {
    error: "cant_enable_private_instance_and_federation_together";
} | {
    error: "locked";
} | {
    error: "couldnt_create_comment";
} | {
    error: "max_comment_depth_reached";
} | {
    error: "no_comment_edit_allowed";
} | {
    error: "only_admins_can_create_communities";
} | {
    error: "community_already_exists";
} | {
    error: "language_not_allowed";
} | {
    error: "only_mods_can_post_in_community";
} | {
    error: "couldnt_update_post";
} | {
    error: "no_post_edit_allowed";
} | {
    error: "couldnt_find_post";
} | {
    error: "edit_private_message_not_allowed";
} | {
    error: "site_already_exists";
} | {
    error: "application_question_required";
} | {
    error: "invalid_default_post_listing_type";
} | {
    error: "registration_closed";
} | {
    error: "registration_application_answer_required";
} | {
    error: "email_already_exists";
} | {
    error: "federation_forbidden_by_strict_allow_list";
} | {
    error: "person_is_banned_from_community";
} | {
    error: "object_is_not_public";
} | {
    error: "invalid_community";
} | {
    error: "cannot_create_post_or_comment_in_deleted_or_removed_community";
} | {
    error: "cannot_receive_page";
} | {
    error: "new_post_cannot_be_locked";
} | {
    error: "only_local_admin_can_remove_community";
} | {
    error: "only_local_admin_can_restore_community";
} | {
    error: "no_id_given";
} | {
    error: "incorrect_login";
} | {
    error: "invalid_query";
} | {
    error: "object_not_local";
} | {
    error: "post_is_locked";
} | {
    error: "person_is_banned_from_site";
    message: string;
} | {
    error: "invalid_vote_value";
} | {
    error: "page_does_not_specify_creator";
} | {
    error: "no_email_setup";
} | {
    error: "local_site_not_setup";
} | {
    error: "email_smtp_server_needs_a_port";
} | {
    error: "missing_an_email";
} | {
    error: "rate_limit_error";
} | {
    error: "invalid_name";
} | {
    error: "invalid_display_name";
} | {
    error: "invalid_matrix_id";
} | {
    error: "invalid_post_title";
} | {
    error: "invalid_body_field";
} | {
    error: "bio_length_overflow";
} | {
    error: "alt_text_length_overflow";
} | {
    error: "missing_totp_token";
} | {
    error: "missing_totp_secret";
} | {
    error: "incorrect_totp_token";
} | {
    error: "couldnt_parse_totp_secret";
} | {
    error: "couldnt_generate_totp";
} | {
    error: "totp_already_enabled";
} | {
    error: "couldnt_like_comment";
} | {
    error: "couldnt_save_comment";
} | {
    error: "couldnt_create_report";
} | {
    error: "couldnt_resolve_report";
} | {
    error: "community_moderator_already_exists";
} | {
    error: "community_user_already_banned";
} | {
    error: "community_block_already_exists";
} | {
    error: "community_follower_already_exists";
} | {
    error: "couldnt_update_community_hidden_status";
} | {
    error: "person_block_already_exists";
} | {
    error: "user_already_exists";
} | {
    error: "token_not_found";
} | {
    error: "couldnt_like_post";
} | {
    error: "couldnt_save_post";
} | {
    error: "couldnt_mark_post_as_read";
} | {
    error: "couldnt_hide_post";
} | {
    error: "couldnt_update_community";
} | {
    error: "couldnt_update_replies";
} | {
    error: "couldnt_update_person_mentions";
} | {
    error: "post_title_too_long";
} | {
    error: "couldnt_create_post";
} | {
    error: "couldnt_create_private_message";
} | {
    error: "couldnt_update_private";
} | {
    error: "system_err_login";
} | {
    error: "couldnt_set_all_registrations_accepted";
} | {
    error: "couldnt_set_all_email_verified";
} | {
    error: "banned";
} | {
    error: "blocked_url";
} | {
    error: "couldnt_get_comments";
} | {
    error: "couldnt_get_posts";
} | {
    error: "invalid_url";
} | {
    error: "email_send_failed";
} | {
    error: "slurs";
} | {
    error: "couldnt_find_object";
} | {
    error: "registration_denied";
    message: string | null;
} | {
    error: "federation_disabled";
} | {
    error: "domain_blocked";
    message: string;
} | {
    error: "domain_not_in_allow_list";
    message: string;
} | {
    error: "federation_disabled_by_strict_allow_list";
} | {
    error: "site_name_required";
} | {
    error: "site_name_length_overflow";
} | {
    error: "permissive_regex";
} | {
    error: "invalid_regex";
} | {
    error: "captcha_incorrect";
} | {
    error: "couldnt_create_audio_captcha";
} | {
    error: "invalid_url_scheme";
} | {
    error: "couldnt_send_webmention";
} | {
    error: "contradicting_filters";
} | {
    error: "instance_block_already_exists";
} | {
    error: "too_many_items";
} | {
    error: "community_has_no_followers";
} | {
    error: "ban_expiration_in_past";
} | {
    error: "invalid_unix_time";
} | {
    error: "invalid_bot_action";
} | {
    error: "cant_block_local_instance";
} | {
    error: "url_without_domain";
} | {
    error: "inbox_timeout";
} | {
    error: "unknown";
    message: string;
} | {
    error: "cant_delete_site";
} | {
    error: "url_length_overflow";
}

Type declaration

  • error: "report_reason_required"

Type declaration

  • error: "report_too_long"

Type declaration

  • error: "not_a_moderator"

Type declaration

  • error: "not_an_admin"

Type declaration

  • error: "cant_block_yourself"

Type declaration

  • error: "cant_block_admin"

Type declaration

  • error: "couldnt_update_user"

Type declaration

  • error: "passwords_do_not_match"

Type declaration

  • error: "email_not_verified"

Type declaration

  • error: "email_required"

Type declaration

  • error: "couldnt_update_comment"

Type declaration

  • error: "couldnt_update_private_message"

Type declaration

  • error: "cannot_leave_admin"

Type declaration

  • error: "no_lines_in_html"

Type declaration

  • error: "site_metadata_page_is_not_doctype_html"

Type declaration

  • error: "pictrs_response_error"
  • message: string

Type declaration

  • error: "pictrs_purge_response_error"
  • message: string

Type declaration

  • error: "pictrs_caching_disabled"

Type declaration

  • error: "image_url_missing_path_segments"

Type declaration

  • error: "image_url_missing_last_path_segment"

Type declaration

  • error: "pictrs_api_key_not_provided"

Type declaration

  • error: "no_content_type_header"

Type declaration

  • error: "not_an_image_type"

Type declaration

  • error: "not_a_mod_or_admin"

Type declaration

  • error: "no_admins"

Type declaration

  • error: "not_top_admin"

Type declaration

  • error: "not_top_mod"

Type declaration

  • error: "not_logged_in"

Type declaration

  • error: "not_higher_mod"

Type declaration

  • error: "not_higher_admin"

Type declaration

  • error: "site_ban"

Type declaration

  • error: "deleted"

Type declaration

  • error: "banned_from_community"

Type declaration

  • error: "couldnt_find_community"

Type declaration

  • error: "couldnt_find_person"

Type declaration

  • error: "couldnt_find_comment"

Type declaration

  • error: "couldnt_find_comment_report"

Type declaration

  • error: "couldnt_find_post_report"

Type declaration

  • error: "couldnt_find_private_message_report"

Type declaration

  • error: "couldnt_find_local_user"

Type declaration

  • error: "couldnt_find_person_mention"

Type declaration

  • error: "couldnt_find_registration_application"

Type declaration

  • error: "couldnt_find_comment_reply"

Type declaration

  • error: "couldnt_find_private_message"

Type declaration

  • error: "couldnt_find_activity"

Type declaration

  • error: "person_is_blocked"

Type declaration

  • error: "community_is_blocked"

Type declaration

  • error: "instance_is_blocked"

Type declaration

  • error: "downvotes_are_disabled"

Type declaration

  • error: "instance_is_private"

Type declaration

  • error: "invalid_password"

Type declaration

  • error: "site_description_length_overflow"

Type declaration

  • error: "honeypot_failed"

Type declaration

  • error: "registration_application_is_pending"

Type declaration

  • error: "cant_enable_private_instance_and_federation_together"

Type declaration

  • error: "locked"

Type declaration

  • error: "couldnt_create_comment"

Type declaration

  • error: "max_comment_depth_reached"

Type declaration

  • error: "no_comment_edit_allowed"

Type declaration

  • error: "only_admins_can_create_communities"

Type declaration

  • error: "community_already_exists"

Type declaration

  • error: "language_not_allowed"

Type declaration

  • error: "only_mods_can_post_in_community"

Type declaration

  • error: "couldnt_update_post"

Type declaration

  • error: "no_post_edit_allowed"

Type declaration

  • error: "couldnt_find_post"

Type declaration

  • error: "edit_private_message_not_allowed"

Type declaration

  • error: "site_already_exists"

Type declaration

  • error: "application_question_required"

Type declaration

  • error: "invalid_default_post_listing_type"

Type declaration

  • error: "registration_closed"

Type declaration

  • error: "registration_application_answer_required"

Type declaration

  • error: "email_already_exists"

Type declaration

  • error: "federation_forbidden_by_strict_allow_list"

Type declaration

  • error: "person_is_banned_from_community"

Type declaration

  • error: "object_is_not_public"

Type declaration

  • error: "invalid_community"

Type declaration

  • error: "cannot_create_post_or_comment_in_deleted_or_removed_community"

Type declaration

  • error: "cannot_receive_page"

Type declaration

  • error: "new_post_cannot_be_locked"

Type declaration

  • error: "only_local_admin_can_remove_community"

Type declaration

  • error: "only_local_admin_can_restore_community"

Type declaration

  • error: "no_id_given"

Type declaration

  • error: "incorrect_login"

Type declaration

  • error: "invalid_query"

Type declaration

  • error: "object_not_local"

Type declaration

  • error: "post_is_locked"

Type declaration

  • error: "person_is_banned_from_site"
  • message: string

Type declaration

  • error: "invalid_vote_value"

Type declaration

  • error: "page_does_not_specify_creator"

Type declaration

  • error: "no_email_setup"

Type declaration

  • error: "local_site_not_setup"

Type declaration

  • error: "email_smtp_server_needs_a_port"

Type declaration

  • error: "missing_an_email"

Type declaration

  • error: "rate_limit_error"

Type declaration

  • error: "invalid_name"

Type declaration

  • error: "invalid_display_name"

Type declaration

  • error: "invalid_matrix_id"

Type declaration

  • error: "invalid_post_title"

Type declaration

  • error: "invalid_body_field"

Type declaration

  • error: "bio_length_overflow"

Type declaration

  • error: "alt_text_length_overflow"

Type declaration

  • error: "missing_totp_token"

Type declaration

  • error: "missing_totp_secret"

Type declaration

  • error: "incorrect_totp_token"

Type declaration

  • error: "couldnt_parse_totp_secret"

Type declaration

  • error: "couldnt_generate_totp"

Type declaration

  • error: "totp_already_enabled"

Type declaration

  • error: "couldnt_like_comment"

Type declaration

  • error: "couldnt_save_comment"

Type declaration

  • error: "couldnt_create_report"

Type declaration

  • error: "couldnt_resolve_report"

Type declaration

  • error: "community_moderator_already_exists"

Type declaration

  • error: "community_user_already_banned"

Type declaration

  • error: "community_block_already_exists"

Type declaration

  • error: "community_follower_already_exists"

Type declaration

  • error: "couldnt_update_community_hidden_status"

Type declaration

  • error: "person_block_already_exists"

Type declaration

  • error: "user_already_exists"

Type declaration

  • error: "token_not_found"

Type declaration

  • error: "couldnt_like_post"

Type declaration

  • error: "couldnt_save_post"

Type declaration

  • error: "couldnt_mark_post_as_read"

Type declaration

  • error: "couldnt_hide_post"

Type declaration

  • error: "couldnt_update_community"

Type declaration

  • error: "couldnt_update_replies"

Type declaration

  • error: "couldnt_update_person_mentions"

Type declaration

  • error: "post_title_too_long"

Type declaration

  • error: "couldnt_create_post"

Type declaration

  • error: "couldnt_create_private_message"

Type declaration

  • error: "couldnt_update_private"

Type declaration

  • error: "system_err_login"

Type declaration

  • error: "couldnt_set_all_registrations_accepted"

Type declaration

  • error: "couldnt_set_all_email_verified"

Type declaration

  • error: "banned"

Type declaration

  • error: "blocked_url"

Type declaration

  • error: "couldnt_get_comments"

Type declaration

  • error: "couldnt_get_posts"

Type declaration

  • error: "invalid_url"

Type declaration

  • error: "email_send_failed"

Type declaration

  • error: "slurs"

Type declaration

  • error: "couldnt_find_object"

Type declaration

  • error: "registration_denied"
  • message: string | null

Type declaration

  • error: "federation_disabled"

Type declaration

  • error: "domain_blocked"
  • message: string

Type declaration

  • error: "domain_not_in_allow_list"
  • message: string

Type declaration

  • error: "federation_disabled_by_strict_allow_list"

Type declaration

  • error: "site_name_required"

Type declaration

  • error: "site_name_length_overflow"

Type declaration

  • error: "permissive_regex"

Type declaration

  • error: "invalid_regex"

Type declaration

  • error: "captcha_incorrect"

Type declaration

  • error: "couldnt_create_audio_captcha"

Type declaration

  • error: "invalid_url_scheme"

Type declaration

  • error: "couldnt_send_webmention"

Type declaration

  • error: "contradicting_filters"

Type declaration

  • error: "instance_block_already_exists"

Type declaration

  • error: "too_many_items"

Type declaration

  • error: "community_has_no_followers"

Type declaration

  • error: "ban_expiration_in_past"

Type declaration

  • error: "invalid_unix_time"

Type declaration

  • error: "invalid_bot_action"

Type declaration

  • error: "cant_block_local_instance"

Type declaration

  • error: "url_without_domain"

Type declaration

  • error: "inbox_timeout"

Type declaration

  • error: "unknown"
  • message: string

Type declaration

  • error: "cant_delete_site"

Type declaration

  • error: "url_length_overflow"