Allow error codes both as number or array of numbers. Fixes #1