hyper-status-code
v0.0.0
Published
A tiny package for http status code
Downloads
10
Maintainers
Readme
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();