Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

devmaximilian/http-700

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP 700

Based on this fantastic RFC proposal. Intended for use with express.

Example usage

A basic usage example.

const express = require('express');
const http700 = require('http-700');
const app = express();
const port = 3000;

app.get('/', (req, res) => {
  http700.setFor(res, 701);
  res.send('Hello World!');
});

app.listen(port, () => console.log(`Listening on port ${port}!`));

NOTE: Make sure to send a response (as this package does not do that automatically).

About

An (unofficial) implementation of the RFC for 700 HTTP Status Codes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published