Improve response generation, add errors to security_group