how to handle responses from the server on the client? - SolidJS