Add more error codes, messages and error checking.

Fixed the names. The cast is needed because CreateSeries returns an "error" type and we need the ManagerError field values. No, we cannot change the struct either.