-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Add a learn article explaining HTTP status code #8346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
avivkeller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concern here is that we are re-inventing the wheel.
If the user wants to see the different codes they can use, they should visit https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status.
|
|
||
| The purpose of this guide is to provide a clear understanding of HTTP status | ||
| codes and how to use them effectively when building servers in Node.js. | ||
| If you’ve followed along with [`Anatomy of an HTTP Transaction`](https://nodejs.org/en/learn/http/anatomy-of-an-http-transaction), you’ve already seen how to send responses to clients. This article builds on that foundation by exploring how to communicate meaningful outcomes through proper HTTP status codes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, this should be bold, not code.
Also, the link should be /learn/...
I do agree with that, but i saw it in a way that if the user is utilizing the learn path on the website, it would be convenient for them to have that concept cleared without having to deviating from the page |
|
Nice write-up, but I also don't think this should belong nodejs.org. HTTP concepts are general web fundamentals, not Node specific behaviour. We already explain how to send the status code, which covers the only Node related part of this article. |
Description
A new article for HTTP explaining various HTTP status codes
Validation
article is located on the learn page under the http header. Article name: "Understanding HTTP Status Codes"
Related Issues
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.