public asJSONValidatorErrors ( integer $code, array $validatorErrors ) : SS_HTTPResponse | ||
$code | integer | HTTP status code. |
$validatorErrors | array | Result of calling Validator::validate, e.g. [{"fieldName":"Name","message":"Message.","messageType":"bad"}] |
return | SS_HTTPResponse |