ApiError refactor.
Move root directory.