Why did you chose the `options` hash? I am wondering if using 2 arguments - with a default value for the last one if that's the error_code - would make this code simpler and easier to use.