Seaquel
MySQL error code

MySQL error 1337

MySQL server error 1337 is ER_SP_VARCOND_AFTER_CURSHNDLR, reported with SQLSTATE 42000.

Variable or condition declaration after cursor or handler declaration
Error1337
NameER_SP_VARCOND_AFTER_CURSHNDLR
SQLSTATE42000
GroupServer errors

In other databases

Source: MySQL 8.4 Error Reference