Added handling translate error codes