Cowboy handler

Why throw an exception and not do a cowboy req reply directly?