Handle out-of-range error codes

to keep GeniError instances stringifiable.