public class ResponseStatus
extends com.yahoo.processing.response.AbstractData
A data item holding a response HTTP status code. If this is present in a Response it will determine the HTTP status of the response (when returned over HTTP), regardless of any errors present in the result which might otherwise determine the response status.
If several ResponseStatus instances are present, the first one encountered by a depth-first search through the data composite tree will be used.
Note that this must be added to the response before any response data is writable to take effect.
Modifier and Type | Field and Description |
---|---|
private int |
code
A http status code
|
Constructor and Description |
---|
ResponseStatus(int code,
com.yahoo.processing.Request request) |
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code of this
|
String |
toString() |
addFreezeListener, clone, freeze
Copyright © 2017. All rights reserved.