updated resource to use generic response with specific response codes