server not always returning code with error... Fixes #6.