sqlite3_result_error_code

fnvoid sqlite3_result_error_code(sqlite3_context *, int)

Ditto