You should shouldn't check for
"invalid_parameter"
"out_of_memory"
"io_error" ?