Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translates HTTP status code to minimal friendly object containing description and emoji 😃

GitHub Actions StatusNPMgzip

🔧 Installation

npm i friendly-http-status

📦 Usage

import{getFriendlyError}from"friendly-http-status";console.log(getFriendlyError(404));

👀 Response

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."}

🤠 Credits

About

Translates http status code to friendly object containing description and emoji

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp