Example usage for org.springframework.http HttpStatus MULTIPLE_CHOICES

List of usage examples for org.springframework.http HttpStatus MULTIPLE_CHOICES

Introduction

In this page you can find the example usage for org.springframework.http HttpStatus MULTIPLE_CHOICES.

Prototype

HttpStatus MULTIPLE_CHOICES

To view the source code for org.springframework.http HttpStatus MULTIPLE_CHOICES.

Click Source Link

Document

300 Multiple Choices .

Usage

From source file:org.terasoluna.gfw.functionaltest.app.exceptionhandling.ExceptionHandlingController.java

@ExceptionHandler(MultipleChoicesException.class)
@ResponseStatus(HttpStatus.MULTIPLE_CHOICES)
public ModelAndView handleException(MultipleChoicesException e) {
    ExtendedModelMap modelMap = new ExtendedModelMap();

    modelMap.addAttribute("exceptionMessage", e.getMessage());
    return new ModelAndView("exceptionhandling/exceptionHandler", modelMap);
}