/** * Get HTTP response status associated with this exception as {@link HttpStatus}, if available and known. * @return Optional HTTP response status */ public Optional<HttpStatus> getStatus() { return HttpStatus.of(getStatusCode()); }
/** * Get HTTP response status associated with this exception as {@link HttpStatus}, if available and known. * @return Optional HTTP response status */ public Optional<HttpStatus> getStatus() { return HttpStatus.of(getStatusCode()); }