Fix error codes (Change from String constants to integers)