Title: 404 instead of 405 for unsupported HTTP methods isn't documented · Issue #45184 · github/docs · GitHub
Open Graph Title: 404 instead of 405 for unsupported HTTP methods isn't documented · Issue #45184 · github/docs
X Title: 404 instead of 405 for unsupported HTTP methods isn't documented · Issue #45184 · github/docs
Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-the-rest-api What part(s) of the article w...
Open Graph Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-th...
X Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/troubleshootin...
Opengraph URL: https://github.com/github/docs/issues/45184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"404 instead of 405 for unsupported HTTP methods isn't documented","articleBody":"### Code of Conduct\n\n- [x] I have read and agree to the GitHub Docs project's [Code of Conduct](https://github.com/github/docs/blob/main/.github/CODE_OF_CONDUCT.md)\n\n### What article on docs.github.com is affected?\n\nhttps://docs.github.com/en/rest/using-the-rest-api/troubleshooting-the-rest-api\n\n### What part(s) of the article would you like to see updated?\n\nThe 404 section covers one cause of 404s (masking private-repo existence). It doesn't cover this one: an HTTP method a route doesn't support also returns 404, not 405.\n\nExample: DELETE on a read-only endpoint → 404, not the 405 you'd expect from RFC 7231.\n\nAdd a line so people don't debug a \"missing resource\" that's actually a wrong verb.\n\n### Additional information\n\nReliably reproducible. Verified with a black-box pytest suite: test_unsupported_method_is_masked_as_404 in https://github.com/jornith/octoprobe","author":{"url":"https://github.com/jornith","@type":"Person","name":"jornith"},"datePublished":"2026-07-16T12:58:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/45184/docs/issues/45184"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:69348b07-6734-bae0-5364-7e0659691f7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFC2:12CC5:1289097:190F569:6A62CCDF |
| html-safe-nonce | e0a59167a05cfc44018f04c640c432c5afdc358a0fa69a462228ff58afcf6518 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkMyOjEyQ0M1OjEyODkwOTc6MTkwRjU2OTo2QTYyQ0NERiIsInZpc2l0b3JfaWQiOiI2MjI0MDMyODAyMDEzMzY3NTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f9fed1d574d6d82b3c0c952fd489bd7e6b7f25cb1c8346a5d8084da7dbde8ea5 |
| hovercard-subject-tag | issue:4902219366 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/docs/45184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c563147debcfa71189ac68ddd75b1c3637de23a71aa0185b3899e542756df1f/github/docs/issues/45184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c563147debcfa71189ac68ddd75b1c3637de23a71aa0185b3899e542756df1f/github/docs/issues/45184 |
| og:image:alt | Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jornith |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/github/docs git https://github.com/github/docs.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 189621607 |
| octolytics-dimension-repository_nwo | github/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 189621607 |
| octolytics-dimension-repository_network_root_nwo | github/docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width