Added error catching to server.
Testing for 200 OK from server.