v.25.1Improvement

Make MySQL Wire Protocol Error Code Compatible with MySQL

Make the error code in the MySQL wire protocol compatible with MySQL. Continuation of #56831. Closes #50957. #73948 (Alexey Milovidov).