REST +added errors