public enum StatusCode extends java.lang.Enum<StatusCode>
The top half (128 values) of each range (0x0n80 to 0x0nff, for n = 0 to 5) is reserved for vendor use within each status-code class. Values 0x0600 to 0x7fff are reserved for future assignment by Standards Track documents and MUST NOT be used.
| Enum Constant and Description |
|---|
CLIENT_ERROR_ATTRIBUTES_OR_VALUES_NOT_SUPPORTED
In a Job Creation request, if the Printer does not support one or
more attributes, attribute syntaxes, or attribute values supplied in
the request and the Client supplied the "ipp-attribute-fidelity"
operation attribute with the 'true' value, the Printer MUST return
this status-code.
|
CLIENT_ERROR_BAD_REQUEST
The request could not be understood by the IPP object due to
malformed syntax (such as the value of a fixed-length attribute whose
length does not match the prescribed length for that attribute -- see
the Implementor's Guides [RFC3196] [PWG5100.19]).
|
CLIENT_ERROR_CHARSET_NOT_SUPPORTED
For any operation, if the IPP Printer does not support the charset
supplied by the Client in the "attributes-charset" operation
attribute, the Printer MUST reject the operation and return this
status-code, and any 'text' or 'name' attributes using the 'utf-8'
charset (Section 4.1.4.1).
|
CLIENT_ERROR_COMPRESSION_ERROR
The IPP object is refusing to service the request because the
Document data cannot be decompressed when using the algorithm
specified by the "compression" operation attribute.
|
CLIENT_ERROR_COMPRESSION_NOT_SUPPORTED
The IPP object is refusing to service the request because the
Document data, as specified in the "compression" operation attribute,
is compressed in a way that is not supported by the Printer.
|
CLIENT_ERROR_CONFLICTING_ATTRIBUTES
The request is rejected because some attribute values conflicted with
the values of other attributes that this document does not permit to
be substituted or ignored.
|
CLIENT_ERROR_DOCUMENT_ACCESS_ERROR
The IPP object is refusing to service the Print-URI or Send-URI
request because the Printer encountered an access error while
attempting to validate the accessibility of, or access to, the
Document data specified in the "document-uri" operation attribute.
|
CLIENT_ERROR_DOCUMENT_FORMAT_ERROR
The IPP object is refusing to service the request because the Printer
encountered an error in the Document data while interpreting it.
|
CLIENT_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED
The IPP object is refusing to service the request because the
Document data is in a format, as specified in the "document-format"
operation attribute, that is not supported by the Printer.
|
CLIENT_ERROR_FORBIDDEN
The IPP object understood the request but is refusing to fulfill it.
|
CLIENT_ERROR_GONE
The requested object is no longer available, and no forwarding
address is known.
|
CLIENT_ERROR_NOT_AUTHENTICATED
The request requires user authentication.
|
CLIENT_ERROR_NOT_AUTHORIZED
The requester is not authorized to perform the request.
|
CLIENT_ERROR_NOT_FOUND
The IPP object has not found anything matching the request URI.
|
CLIENT_ERROR_NOT_POSSIBLE
This status-code is used when the request is for something that
cannot happen.
|
CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
The IPP object is refusing to process a request because the request
entity is larger than the IPP object is willing or able to process.
|
CLIENT_ERROR_REQUEST_VALUE_TOO_LONG
The IPP object is refusing to service the request because one or more
of the Client-supplied attributes have a variable-length value that
is longer than the maximum length specified for that attribute.
|
CLIENT_ERROR_TIMEOUT
The Client did not produce a request within the time that the IPP
object was prepared to wait.
|
CLIENT_ERROR_URI_SCHEME_NOT_SUPPORTED
The scheme of the Client-supplied URI in a Print-URI or a Send-URI
operation is not supported.
|
SERVER_ERROR_BUSY
This is a temporary error indicating that the Printer is too busy
processing Jobs and/or other requests.
|
SERVER_ERROR_DEVICE_ERROR
A Printer error, such as a paper jam, occurs while the IPP object
processes a Print or send operation.
|
SERVER_ERROR_INTERNAL_ERROR
The IPP object encountered an unexpected condition that prevented it
from fulfilling the request.
|
SERVER_ERROR_JOB_CANCELED
This is an error indicating that the Job has been canceled by an
Operator or the system while the Client was transmitting the data to
the IPP Printer.
|
SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
The IPP object does not support multiple Documents per Job, and a
Client attempted to supply Document data with a second Send-Document
or Send-URI operation.
|
SERVER_ERROR_NOT_ACCEPTING_JOBS
This is a temporary error indicating that the Printer is not
currently accepting Jobs because the Administrator has set the value
of the Printer's "printer-is-accepting-jobs" attribute to 'false' (by
means outside the scope of this IPP/1.1 document).
|
SERVER_ERROR_OPERATION_NOT_SUPPORTED
The IPP object does not support the functionality required to fulfill
the request.
|
SERVER_ERROR_SERVICE_UNAVAILABLE
The IPP object is currently unable to handle the request due to
temporary overloading or due to maintenance of the IPP object.
|
SERVER_ERROR_TEMPORARY_ERROR
A temporary error such as a buffer-full write error, a memory
overflow (i.e., the Document data exceeds the memory of the Printer),
or a disk-full condition, occurs while the IPP Printer processes an
operation.
|
SERVER_ERROR_VERSION_NOT_SUPPORTED
The IPP object does not support or refuses to support the IPP version
that was supplied as the value of the "version-number" operation
parameter in the request.
|
SUCCESSFUL_OK
The request has succeeded, and no request attributes were substituted
or ignored.
|
SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES
The request has succeeded, but some supplied attribute values
conflicted with the values of other supplied attributes.
|
SUCCESSFUL_OK_IGNORED_OR_SUBSTITUTED_ATTRIBUTES
The request has succeeded, but some supplied (1) attributes were
ignored or (2) unsupported values were substituted with supported
values or were ignored in order to perform the operation without
rejecting it.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getCode()
Gets the value of the statuscode.
|
boolean |
isSuccessful()
For the constants which represents an succesful state this method
returns true.
|
static StatusCode |
of(int id)
Allows you to map a value to the corresponding statuscode
|
java.lang.String |
toString()
This implementation generates the same representation as described in
section RFC-8011 (section 5.4.15).
|
static StatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusCode SUCCESSFUL_OK
public static final StatusCode SUCCESSFUL_OK_IGNORED_OR_SUBSTITUTED_ATTRIBUTES
public static final StatusCode SUCCESSFUL_OK_CONFLICTING_ATTRIBUTES
public static final StatusCode CLIENT_ERROR_BAD_REQUEST
public static final StatusCode CLIENT_ERROR_FORBIDDEN
public static final StatusCode CLIENT_ERROR_NOT_AUTHENTICATED
public static final StatusCode CLIENT_ERROR_NOT_AUTHORIZED
public static final StatusCode CLIENT_ERROR_NOT_POSSIBLE
public static final StatusCode CLIENT_ERROR_TIMEOUT
public static final StatusCode CLIENT_ERROR_NOT_FOUND
In practice, an IPP application should avoid a "not found" situation by first querying and presenting a list of valid Printer URIs and Job URIs to the End User.
public static final StatusCode CLIENT_ERROR_GONE
This response is primarily intended to assist the task of maintenance by notifying the recipient that the resource is intentionally unavailable and that the IPP object Administrator desires that remote links to that resource be removed. It is not necessary to mark all permanently unavailable resources as "gone" or to keep the mark for any length of time -- that is left to the discretion of the IPP object Administrator and/or Printer implementation.
public static final StatusCode CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
public static final StatusCode CLIENT_ERROR_REQUEST_VALUE_TOO_LONG
Note: For attribute values that are URIs, this rare condition is only likely to occur when a Client has improperly submitted a request with long query information (e.g., an IPP application allows an End User to enter an invalid URI), when the Client has descended into a URI "black hole" of redirection (e.g., a redirected URI prefix that points to a suffix of itself), or when the IPP object is under attack by a Client attempting to exploit security holes present in some IPP objects using fixed-length buffers for reading or manipulating the request URI.
public static final StatusCode CLIENT_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED
public static final StatusCode CLIENT_ERROR_ATTRIBUTES_OR_VALUES_NOT_SUPPORTED
For any operation where a Client requests attributes (such as a Get-Jobs, Get-Printer-Attributes, or Get-Job-Attributes operation), if the IPP object does not support one or more of the requested attributes, the IPP object simply ignores the unsupported requested attributes and processes the request as if they had not been supplied, rather than returning this status-code. In this case, the IPP object MUST return the 'successful-ok-ignored-or-substituted-attributes' status-code and SHOULD return the unsupported attributes as values of the "requested-attributes" operation attribute in the Unsupported Attributes group (see Appendix B.1.2.2).
public static final StatusCode CLIENT_ERROR_URI_SCHEME_NOT_SUPPORTED
public static final StatusCode CLIENT_ERROR_CHARSET_NOT_SUPPORTED
public static final StatusCode CLIENT_ERROR_CONFLICTING_ATTRIBUTES
public static final StatusCode CLIENT_ERROR_COMPRESSION_NOT_SUPPORTED
public static final StatusCode CLIENT_ERROR_COMPRESSION_ERROR
public static final StatusCode CLIENT_ERROR_DOCUMENT_FORMAT_ERROR
public static final StatusCode CLIENT_ERROR_DOCUMENT_ACCESS_ERROR
public static final StatusCode SERVER_ERROR_INTERNAL_ERROR
public static final StatusCode SERVER_ERROR_OPERATION_NOT_SUPPORTED
public static final StatusCode SERVER_ERROR_SERVICE_UNAVAILABLE
public static final StatusCode SERVER_ERROR_VERSION_NOT_SUPPORTED
The error response MUST identify in the "version-number" operation parameter the closest version number that the IPP object does support. For example, if a Client supplies version '1.0' and an IPP/1.1 object supports version '1.0', then it responds with version '1.0' in all responses to such a request. If the IPP/1.1 object does not support version '1.0', then it should accept the request and respond with version '1.1' or can reject the request and respond with this error code and version '1.1'. If a Client supplies version '1.2', the IPP/1.1 object should accept the request and return version '1.1' or can reject the request and respond with this error code and version '1.1'. See Sections 4.1.8 and 5.3.14.
public static final StatusCode SERVER_ERROR_DEVICE_ERROR
public static final StatusCode SERVER_ERROR_TEMPORARY_ERROR
public static final StatusCode SERVER_ERROR_NOT_ACCEPTING_JOBS
public static final StatusCode SERVER_ERROR_BUSY
public static final StatusCode SERVER_ERROR_JOB_CANCELED
public static final StatusCode SERVER_ERROR_MULTIPLE_DOCUMENT_JOBS_NOT_SUPPORTED
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic short getCode()
public boolean isSuccessful()
public java.lang.String toString()
toString in class java.lang.Enum<StatusCode>public static StatusCode of(int id)
id - e.g. 0x0000Copyright © 2018–2020. All rights reserved.