new error codes; tests for ip4