Skip to content

Instantly share code, notes, and snippets.

@ajwagner777
Created March 2, 2016 23:01
Embed
What would you like to do?
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