Skip to content

Instantly share code, notes, and snippets.

@ajwagner777
Created March 2, 2016 23:01
Show Gist options
  • Save ajwagner777/b2688d85074219da7109 to your computer and use it in GitHub Desktop.
Save ajwagner777/b2688d85074219da7109 to your computer and use it in GitHub Desktop.
All time favorite HTTP Status Code
teapot: function (data) {
var body = {
friendlyMessage: data.friendlyMessage || Status.TEAPOT,
message: statusMessage(Status.TEAPOT)
};
jsonResponse(data.res, body, { status: Status.TEAPOT });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment