grails respond error page with status from Url mapping file -


can respond error pages status code url mapping file.

basically have democontroller action index. , have created url mapping "/" -> demo/index. index action of demo controller accessible 2 urls i.r. /demo/index , /.

now want if hit /demo/index should respond error page status 404

what excluding /demo/index mapping this:

static excludes = ['/demo/index'] 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -