split files
return response message as error if error occured