def delete(self):
        for anError in Error.all().fetch(None):
            anError.delete()

        self.response.headers["Content-Type"] = "application/json"
        theJsonResponse = {"result": 0, "message": "Error eliminados correctamente"}
        self.response.out.write(json.dumps(theJsonResponse))
    def get(self):
        listOfErrors = Error.all().fetch(None)

        self.response.headers["Content-Type"] = "application/json"
        theJsonResponse = map(lambda o: o.__dict__["_entity"], listOfErrors)
        self.response.write(json.dumps(theJsonResponse))