Have the error codes be in an enum.