Add a learn article explaining HTTP status code#8346
Add a learn article explaining HTTP status code#8346raghavexe wants to merge 1 commit intonodejs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
avivkeller
left a comment
There was a problem hiding this comment.
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.
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.