Added error schema so error resonses can be mapped and used