ADD error handling implementation when request file (see issue #13)