- Notifications
You must be signed in to change notification settings - Fork156
HTTP headers, media-types, methods, relations and status codes, all summarized and linking to their specification.
License
NotificationsYou must be signed in to change notification settings
for-GET/know-your-http-well
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
HTTP encodings, headers, media types, methods, relations and status codes, all summarized and linking to their specification.
This project is used byHyperREST bin atbin.hyperrest.com .
(require'know-your-http-well);; M-x http-header ;; content-type;; M-x http-method ;; post | POST;; M-x http-relation ;; describedby;; M-x http-status-code ;; 500;; M-x http-status-code ;; not_found | NOT_FOUND
varhttpWell=require('know-your-http-well'),statusWell=httpWell.statusPhrasesToCodes,phraseWell=httpWell.statusCodesToPhrases;// on the server sideres.statusCode=statusWell.NOT_FOUND// on the client sideif(res.statusCode!==statusWell.OK){// Log "Request returned 404 Not Found"log('Request returned '+res.statusCode+' '+phraseWell[res.statusCode]);}
Just take a look at./json/*.json.
- https://github.com/dret/webconcepts
- DanaDanger on twitter.com:
HTTP response codes for dummies. 50x: we fucked up. 40x: you fucked up. 30x: ask that dude over there. 20x: cool.
- Steve Losh on twitter.com :
HTTP status ranges in a nutshell: 1xx: hold on. 2xx: here you go. 3xx: go away. 4xx: you fucked up. 5xx: I fucked up
About
HTTP headers, media-types, methods, relations and status codes, all summarized and linking to their specification.
Topics
Resources
License
Contributing
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.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.