Define http error, moving restrict method from cocktail to router.