CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Tue, 30 Sep 2025 20:43:44 GMT
access-control-allow-origin: *
etag: W/"68dc4100-1b0b"
expires: Sun, 12 Oct 2025 16:42:40 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 857C:8C578:158A25:1A46EF:68EBD827
accept-ranges: bytes
age: 0
date: Sun, 12 Oct 2025 16:32:40 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210036-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760286761.564595,VS0,VE297
vary: Accept-Encoding
x-fastly-request-id: e9ea0a30db0de99e778e5bef04d59ac337233ce0
content-length: 2352
The 451 status code is now supported | GitHub Developer Guide
This content may be out of date. For the newest content, see the API posts on the GitHub Blog.
This content may be out of date. For the newest content, see the API posts on the GitHub Blog.
All of GitHub's Docs are now in one place! You can see Apps, REST API, and GraphQL API on GitHub Docs.
The 451 status code is now supported
- March 17, 2016
-
gjtorikian
In December 2015, the IETF ratified status code 451
. A 451
response indicates that a resource is unavailable due to an external legal request.
The GitHub API will now respond with a 451
status code for resources it has been asked to take down due to a DMCA notice. For example:
curl https://api.github.com/repos/github/a-repository-that-s-been-taken-down HTTP/1.1 451 Server: GitHub.com { "message": "Repository access blocked", "block": { "reason": "dmca", "created_at": "2016-03-17T15:39:46-07:00" } }
This 451
code will be returned for repositories and gists. Previously, the API responded with a 403 - Forbidden
. Aside from the semantic difference, we feel that it's important for users to know precisely why their data cannot be served.
If you're receiving a 451
due to a DMCA takedown, please read our article on submitting a DMCA counter notice and know your rights. For more information, see GitHub's DMCA Takedown Policy.