Make ErrorCode an interface

Static import