Function enforceHTTP
Utility function that throws a HTTPStatusException if the condition is not met.
T enforceHTTP(T)
(
T condition,
HTTPStatus statusCode,
lazy string message = null,
string file = __FILE__,
typeof(__LINE__) line = __LINE__
);