- Notifications
You must be signed in to change notification settings - Fork0
Translates http status code to friendly object containing description and emoji
License
NotificationsYou must be signed in to change notification settings
harshzalavadiya/friendly-http-status
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Translates HTTP status code to minimal friendly object containing description and emoji 😃
npm i friendly-http-status
import{getFriendlyError}from"friendly-http-status";console.log(getFriendlyError(404));
getFriendlyError always returns json object with following property even if code unknown it will return unknown error object
{"emoji":"❓","message":"Not Found","description":"The requested page could not be found but may be available again in the future."}- Emoji dataset is taken fromhttp-status-extra and stripped to minimal
- microbundle for packaging
- TypeScript
About
Translates http status code to friendly object containing description and emoji
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.