add errors to endpoints