def do_DELETE(self): self._set_headers() response = {"message": "This is a DELETE request response"} self.wfile.write(json.dumps(response).encode())