And some improvement; this creates the file always, even wget return error / some other code than 200.
So what's needed is to count lines containing error / parse response from server code.
That can be done directly with grep (when ${output} can be used direcly), or with the help of String -library (which helps if tests needs to be run eg. in windows, where grep isn't present).
So basivcally new keyword:
Get line count containing string
[Arguments] ${string} ${match}
${lines} = Get Lines Containing String ${string} ${match}
${lineCount} = Get Line Count ${lines}
And checking lineCount (if >0, fail the test).
Br,
Juho