public function respond(
        array $data,
        $total = null,
        $page = null,
        $per_page = null,
        $status = 200,
        $headers = [],
        $options = 0
    ) {
        $response = [
            'status' => $status,
        ];
        if (!is_null($total)) {
            $response['total'] = $total;
        }
        if (!is_null($page)) {
            $response['page'] = $page;
        }
        if (!is_null($per_page)) {
            $response['per_page'] = $per_page;
        }
        $response['data'] = $data;

        return $this->responder->respond($response, $status, $headers, $options);
    }