Lets say i have a Controller like this one :
@RequestMapping(method=RequestMethod.GET, value="/error")
public void getresponse(ModelMap modelMap) {
modelMap.addAttribute("categories", "");
}
Is it possible to send a 401 HTTP error when this controller is called? If yes, how ?