[doc] Add details on error codes