define error responses for versions

[ci skip]
fix errors

[ci skip]