Outputs an answer to the browser
public output ( integer $statusCode, mixed $data = null, string $message = null ) | ||
$statusCode | integer | The status code to use, use one of the available constants (self::OK, self::BAD_REQUEST, self::FORBIDDEN, self::ERROR). |
$data | mixed | The data to be returned (will be encoded as JSON). |
$message | string | A text-message. |