Seaquel
SQL Server error code

SQL Server error 178

SQL Server raises error 178 at severity 15, which marks a problem with the query or data that you can correct.

A RETURN statement with a return value cannot be used in this context.
Msg178
Severity15
Group0–999

Source: Database Engine events and errors