remove unused imports. refactor error response