0.0.0 • Published 9 months ago

hyper-status-code v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Hyper Status Code

A tiny package for http status code.

Getting Started

To tnstall Hyper Status Code in your project.

pnpm install hyper-status-code

Examples

import fastify from "fastify";
import statusCode from "hyper-status-code";

const server = await fastify();

server.get("/", (request, reply) => {
  reply
    .code(statusCode.HTTP_202_ACCEPTED)
    .send({ message: "Server is Okey" })
})

server.listen();