error codes initial impl