Specs: used the return code for an error in writing.