Add docs for generate functions' return values
oath_toolkit.impl_cffi: add error code to exception