The /repos/{owner}/{repo}/releases/latest endpoint returns a 404 if you call it against a repository that has no releases (e.g. a newly created repo). The documentation for this endpoint only lists 200 as a potential response code.
This data block is also returned in the event of a 404:
Schema Inaccuracy
The
/repos/{owner}/{repo}/releases/latest
endpoint returns a404
if you call it against a repository that has no releases (e.g. a newly created repo). The documentation for this endpoint only lists200
as a potential response code.This
data
block is also returned in the event of a404
:It's worth noting that the page that the
documentation_url
points to doesn't mention404
response codes.Expected
The documentation should list
404
as a possible response code.Reproduction Steps
owner
andrepo
path placeholders, and pass in an API token if the repo is private).404
response is returned.