Skip to content

HTTP 410 version promise is untestable #7054

Description

@jsoref

https://docs.github.com/en/rest/about-the-rest-api/api-versions?apiVersion=2026-03-10#specifying-an-api-version

If you specify an API version that is no longer supported, you will receive a 410 Gone response.

There's stuff that talks about a HTTP 410 response, but I don't know how to trigger that.

There are currently two api versions:

  • 2022-11-28
  • 2026-03-10

It'd be really nice if you introduced another api version:

  • 2008-04-01

(It could be 2008-01-01, 2008-02-01, 2008-02-07, or 2008-04-09, but 04-01 seems nicest)

And have it return HTTP 410 for any api calls. That'd make it easy for people to imagine calling an endpoint and getting an HTTP 410 back from github based on a versioned api expiring. It'd mean that both GitHub and consumers of GitHub could test this codepath instead of relying on hallucinations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions