Added support to generate resources for errorState within PRD. As well as extended the integration test to verify the functionality