RFC 5530 lists all the response codes and the associated meaning for each response code. A consolidated view of the response codes for IMAP can also be retrieved from this IANA link: https://www.iana.org/assignments/imap-response-codes/imap-response-codes.xhtml.