added statusCode in the returned Error
added store for Buffer (in addition to filename)