_jsonError

Response error as JSON

Parameters
string|array $message

The error message or array of error message

#
string $field = ''

The field name

#
int $status = 400

HTTP status code

#
Returns
void