Skip to content

whosramoss/httpstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo
http status

A fast and clean reference for all HTTP status codes — with definitions, usage notes, and code examples across multiple languages and frameworks.

How to install · How to build · Project architecture · How to add new content

Check the website

How to install

  # Clone the project
  git clone https://github.com/whosramoss/httpstatus/

  # Go to the project directory
  cd httpstatus

  # Install dependencies
  npm install

  # Start the server
  npm run dev

How to build

  # Start the build
  npm run build

Project architecture

src/
├── content/
│   ├── config.ts          # Zod collection schema
│   └── posts/             # 63 .md files (one per HTTP status code)
├── layouts/
│   └── BaseLayout.astro   # Reusable layout with SEO meta tags
├── components/
│   └── References.astro   # Per-language code references
└── pages/
    ├── index.astro        # Homepage with grouped status listing
    ├── [code].astro       # Dynamic page for each status code
    ├── rss.xml.ts         # Automatic RSS feed
    └── sitemap.xml.ts     # Automatic XML sitemap

How to add new content

Create a .md file inside src/content/posts/ with the required frontmatter:

---
title: "NNN"
subtitle: "Status Name"
category: "Nxx Category"
rfcUrl: "https://tools.ietf.org/html/rfcXXXX"
rfcLabel: "RFCXXXX Section X.X.X"
references:
  rails: ":symbol_name"
  go: "http.StatusName"
---

License

MIT License. LICENSE

Author

Gabriel Ramos de Paula (@whosramoss)

About

A fast and clean reference for all HTTP status codes — with definitions, usage notes, and code examples across multiple languages and frameworks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors