Make ErrorCode an interface

Static import all of these while you are changing them