Added centralization for the responses of the server