Available Methods
- OK
- BAD_REQUEST
- INTERNAL_SERVER_ERROR
- NO_CONTENT
- CREATED
- NOT_FOUND
- NOT_IMPLEMENTED
- UNAUTHORIZED
- FORBIDDEN
- valueOf ( )
- CONFLICT
- ACCEPTED
- UNPROCESSABLE_ENTITY
- value ( )
- resolve ( )
- NOT_ACCEPTABLE
- METHOD_NOT_ALLOWED
- Series ( )
- BAD_GATEWAY
- UNSUPPORTED_MEDIA_TYPE
- NOT_MODIFIED
- PRECONDITION_FAILED
- I_AM_A_TEAPOT
- is4xxClientError ( )
- IM_USED
- SERVICE_UNAVAILABLE
- getReasonPhrase ( )
- EXPECTATION_FAILED
- is2xxSuccessful ( )
- GONE
- FOUND
- values ( )
- is5xxServerError ( )
- name ( )
- equals ( )
- FAILED_DEPENDENCY
- TOO_MANY_REQUESTS
- is1xxInformational ( )
- REQUEST_TIMEOUT
Related Classes
- java.util.Arrays
- java.util.Collections
- java.io.InputStream
- java.util.Date
- java.util.UUID
- java.util.stream.Collectors
- java.net.URI
- java.util.Optional
- java.net.URISyntaxException
- javax.servlet.http.HttpServletRequest
- com.fasterxml.jackson.databind.ObjectMapper
- javax.servlet.http.HttpServletResponse
- org.apache.commons.lang3.StringUtils
- org.springframework.web.bind.annotation.RequestMapping
- javax.servlet.ServletException
- org.springframework.web.bind.annotation.RequestMethod
- org.springframework.web.bind.annotation.RequestParam
- org.springframework.http.ResponseEntity
- org.springframework.web.bind.annotation.PathVariable
- org.springframework.http.MediaType
- org.springframework.web.bind.annotation.ResponseBody
- org.springframework.util.StringUtils
- org.springframework.web.bind.annotation.GetMapping
- org.junit.jupiter.api.Test
- org.springframework.web.bind.annotation.RequestBody
Java Code Examples for org.springframework.http.HttpStatus#FAILED_DEPENDENCY
The following examples show how to use
org.springframework.http.HttpStatus#FAILED_DEPENDENCY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PoiWorkBook.java From CheckPoint with Apache License 2.0 | 5 votes |
private void checkDependency() { try { Class.forName("org.apache.poi.hssf.usermodel.HSSFWorkbook"); } catch (ClassNotFoundException e) { throw new ValidationLibException("Not found apache POI library, must import poi to your maven or gradle dependency", HttpStatus.FAILED_DEPENDENCY); } }
Example 2
Source File: ClientfacingErrorITest.java From backstopper with Apache License 2.0 | 4 votes |
@RequestMapping("/throw4xxServerHttpStatusCodeException") public void throw4xxServerHttpStatusCodeException() { HttpClientErrorException serverResponseEx = new HttpClientErrorException(HttpStatus.FAILED_DEPENDENCY, "ignoreme", responseBodyForDownstreamServiceError(), null); throw new ServerHttpStatusCodeException(new Exception("Intentional test exception"), "FOO", serverResponseEx, serverResponseEx.getStatusCode().value(), serverResponseEx.getResponseHeaders(), serverResponseEx.getResponseBodyAsString()); }