It was the only use of errdefs inside api/types, which is the package that's imported by external users. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>