made error codes returned in a much clearer way matchign the error codes expected from the test suit