look for errors array instead of message on server error