Fixed broken createResponse for file access