Skip to content

Document that unsupported HTTP methods return 404, not 405#45190

Open
jornith wants to merge 1 commit into
github:mainfrom
jornith:patch-404-wrong-method
Open

Document that unsupported HTTP methods return 404, not 405#45190
jornith wants to merge 1 commit into
github:mainfrom
jornith:patch-404-wrong-method

Conversation

@jornith

@jornith jornith commented Jul 17, 2026

Copy link
Copy Markdown

Why:

Closes: #45184

What's being changed (if available, include any code snippets, screenshots, or gifs):

Adds a paragraph to the "404 Not Found for an existing resource" section of the REST API troubleshooting guide: a request that uses an HTTP method the endpoint does not support also returns 404 Not Found (rather than 405 Method Not Allowed), so a wrong verb can look like a missing resource. The paragraph follows the existing "check your URL for typos" guidance and points readers to the endpoint reference for supported methods.

Verified against the live API (repro: test_unsupported_method_is_masked_as_404 in https://github.com/jornith/octoprobe).

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

@welcome

welcome Bot commented Jul 17, 2026

Copy link
Copy Markdown

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
rest/using-the-rest-api/troubleshooting-the-rest-api.md fpt
ghec
ghes@ 3.21 3.20 3.19 3.18 3.17
fpt
ghec
ghes@ 3.21 3.20 3.19 3.18 3.17

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@jornith jornith closed this Jul 17, 2026
@jornith
jornith deleted the patch-404-wrong-method branch July 17, 2026 17:36
@jornith
jornith restored the patch-404-wrong-method branch July 17, 2026 17:38
@jornith jornith reopened this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

404 instead of 405 for unsupported HTTP methods isn't documented

1 participant