Skip to content

Remove a label from an issue: Clarify 404 status code #35553

Description

@david-allison

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#remove-a-label-from-an-issue

What part(s) of the article would you like to see updated?

It is unclear whether a 404 is generated because:

  1. The label does not exist on the Pull Request/Issue
    • Expected error most people will want to handle
  2. The label is not defined on the repo
    • Catastrophic logic error

Additional information

Relevant docs

This endpoint returns a 404 Not Found status if the label does not exist.


404 Resource not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SME reviewedAn SME has reviewed this issue/PRcontentThis issue or pull request belongs to the Docs Content teamfix-internallyTriggers a workflow to copy the issue internally and close the current issuerestContent related to rest - overview.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions