I am using Grails 2.4.4 and would like to define a generic UrlMapping for a range of HTTP-error-codes (like 450-499, 510-540).
I've found some related questions - even on SO - but the answers are either outdated or not working.
The container does not start once I use regular expressions on error-mappings.
For instance, this simple example will fail:
"$errorCode" {
controller = "error"
action = "general"
constraints {
errorCode(matches:/\d{3}/)
}
}
Does anyone know how I may approach this?