def formatResponse(self, response: QgsServerResponse) -> None: """ Format error response """ body = {"status": "fail", "message": self.msg} response.clear() write_json_response(body, response, self.code)
def formatResponse(self, response: QgsServerResponse) -> None: """ Format error response """ body = {'status': 'fail', 'code': self.code, 'message': self.msg} response.clear() write_json_response(body, response, self.response_code)
def formatResponse(self, response: QgsServerResponse) -> None: """ Format error response """ body = { 'status': 'fail', 'message': self.msg } response.clear() write_json_response(body, response, self.code)