The first two characters of an SQLSTATE value indicate the error
class:

Class = '00' indicates success.

Class = '01' indicates a warning.

Class = '02' indicates “not
found.” This is relevant within the context of cursors
and is used to control what happens when a cursor reaches the
end of a data set. This condition also occurs for
SELECT ... INTO
var_list statements that
retrieve no rows.