getMessage(), $e->getCode(), null, Http::getStatusText($e->getCode()), 'request'); } catch (Exception $e) { DBG::log($e); throw new Api_OwsException("User is not allowed to read relations from '{$typeName}.{$primaryKey}' to '{$remoteTypeName}'.\n" . $e->getMessage(), 501, null, 'AccessDenied', 'request'); } header('Content-Type: application/json'); echo json_encode([ 'type' => "success", 'msg' => "done", // 'body' => [ // 'relations' => $listRelations, // 'total' => $total, // ] ]); exit; } }