Add global errors to endpoints