@autometa/status-codes
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

Introduction

Simple library providing access to Http Status codes and phrase texts.

npm add @autometa/status-codes

Use

import { StatusCodes } from "@autometa/status-codes";

console.log(StatusCodes.OK.status); // 200
console.log(StatusCodes.OK.statusText); // 'OK'

StatusCodes is an as const object, making its values visible in the text editor

Package Sidebar

Install

npm i @autometa/status-codes

Weekly Downloads

172

Version

0.4.1

License

ISC

Unpacked Size

91.4 kB

Total Files

11

Last publish

Collaborators

  • benah