@Response(code=410, description="Gone") public class Gone extends HttpException
Indicates that the resource requested is no longer available and will not be available again.
This should be used when a resource has been intentionally removed and the resource should be purged.
Upon receiving a 410 status code, the client should not request the resource in the future.
Clients such as search engines should remove the resource from their indices.
Most use cases do not require clients and search engines to purge the resource, and a
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
Gone()
Constructor.
|
Gone(String msg)
Constructor.
|
Gone(String msg,
Object... args)
Constructor.
|
Gone(Throwable cause)
Constructor.
|
Gone(Throwable cause,
String msg,
Object... args)
Constructor.
|
getFullStackMessage, getRootCause, getStatus, hashCode, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public Gone(Throwable cause, String msg, Object... args)
cause
- The cause. Can be msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public Gone()
public Gone(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.