changed an error so it's sends out a array rather than http