add fail_with helper for handling failure cases
add fail_with helper for handling failure cases

So far, fail_with only supports a small handful of cases, but more can
be added as necessary.

shadowflame46/webSHerver,avleen/bashttpd,marvindanig/bashttpd,shadowflame46/webSHerver