Add create_error/3 for version 5