replaced error strings by error codes