'.. http:get:: /state
A GET request to this endpoint returns the current state of the Tribler core. There are three states:
- STARTING: The core of Tribler is starting
- UPGRADING: The upgrader is active
- STARTED: The Tribler core has started
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/state
**Example response**:
.. sourcecode:: javascript
"state": "STARTED",
"last_exception": None'

def render_GET(self, request):

    return json.dumps({'state': self.tribler_state, 'last_exception': self.last_exception})
