Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created May 1, 2014 22:19
Show Gist options
  • Select an option

  • Save ingydotnet/f4f9c8a10ece5b028cff to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/f4f9c8a10ece5b028cff to your computer and use it in GitHub Desktop.
Why does a bad repository delete call return a 404?
$ git hub repo github/janky
Full Name github/janky
Description:
Continuous integration server built on top of Jenkins and Hubot
Language Ruby
GitHub Page https://github.com/github/janky
Remote URL git@github.com:github/janky.git
Forks 170
Stars 1974
Open Issues 18
Pushed At 2014-05-01 17:46:32
Created At 2011-12-19
$ git hub repo-delete github/janky -v
curl --request DELETE https://api.github.com/repos/github/janky --header Authorization: token ******** --user-agent git-hub-0.0.3 --dump-header /home/ingy/.git-hub/cache/head --output /home/ingy/.git-hub/cache/out --stderr /home/ingy/.git-hub/cache/err --silent --show-error
Repository 'github/janky' not found
API status code: 404
API error output:
Not Found
@ingydotnet

Copy link
Copy Markdown
Author

I was wondering why the API returns a 404 when I try to delete a repo that exists, but that I don't have permission to delete. 404 Not Found seems like the wrong code.

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