HttpException.enforce

Custom enforce for using an HTTP status code together with a set of messages that should be appended.

class HttpException
void
enforce
(
istring file = __FILE__
long line = __LINE__
T...
)

Parameters

file

The filename

line

The line number

T

Types of messages to append

ok bool

The condition to enforce

code HttpResponseCode

The status code

messages T

The messages

Meta