errors being sent to client