$bodytext]); // $data = $qfq->rest(); } catch (qfq\CodeException $e) { $answer[API_MESSAGE] = $e->formatMessage(); } catch (qfq\UserFormException $e) { $answer[API_MESSAGE] = $e->formatMessage(); } catch (qfq\UserReportException $e) { $answer[API_MESSAGE] = $e->formatMessage(); } catch (qfq\DbException $e) { $answer[API_MESSAGE] = $e->formatMessage(); } header("Content-Type: application/json"); echo json_encode($answer);