ObexStatusCode Enumeration

Specifies the status codes returned for an Object Exchange (OBEX) operation.

Definition

Namespace: InTheHand.Net
Assembly: InTheHand.Net.Obex (in InTheHand.Net.Obex.dll) Version: 4.0.5
C#
[FlagsAttribute]
public enum ObexStatusCode

Remarks

OBEX codes are directly related to their HTTP equivalents - see HttpStatusCode.

Members

Continue16 Equivalent to HTTP status 100. Continue indicates that the client can continue with its request.
OK32 Equivalent to HTTP status 200. OK indicates that the request succeeded and that the requested information is in the response. This is the most common status code to receive.
Created33 Equivalent to HTTP status 201. Created indicates that the request resulted in a new resource created before the response was sent.
Accepted34 Equivalent to HTTP status 202. Accepted indicates that the request has been accepted for further processing.
NonAuthorativeInformation35 Equivalent to HTTP status 203. NonAuthoritativeInformation indicates that the returned metainformation is from a cached copy instead of the origin server and therefore may be incorrect.
NoContent36 Equivalent to HTTP status 204. NoContent indicates that the request has been successfully processed and that the response is intentionally blank.
ResetContent37 Equivalent to HTTP status 205. ResetContent indicates that the client should reset (not reload) the current resource.
PartialContent38 Equivalent to HTTP status 206. PartialContent indicates that the response is a partial response as requested by a GET request that includes a byte range.
MultipleChoices48 Equivalent to HTTP status 300. MultipleChoices indicates that the requested information has multiple representations.
MovedPermanently49 Equivalent to HTTP status 301. MovedPermanently indicates that the requested information has been moved to the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response.
MovedTemporarily50 Equivalent to HTTP status 302. Redirect indicates that the requested information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will use the GET method.
SeeOther51 Equivalent to HTTP status 303. SeeOther automatically redirects the client to the URI specified in the Location header as the result of a POST. The request to the resource specified by the Location header will be made with a GET.
NotModified52 Equivalent to HTTP status 304. NotModified indicates that the client's cached copy is up to date. The contents of the resource are not transferred.
UseProxy53 Equivalent to HTTP status 305. UseProxy indicates that the request should use the proxy server at the URI specified in the Location header.
BadRequest64 Equivalent to HTTP status 400. BadRequest indicates that the request could not be understood by the server. BadRequest is sent when no other error is applicable, or if the exact error is unknown or does not have its own error code. ObexWebRequest reports errors through ObexWebResponse.StatusCode, this status code is overloaded by it to report failure to connect to the server.
Unauthorized65 Equivalent to HTTP status 401. Unauthorized indicates that the requested resource requires authentication. The WWW-Authenticate header contains the details of how to perform the authentication.
PaymentRequired66 Equivalent to HTTP status 402. PaymentRequired is reserved for future use.
Forbidden67 Equivalent to HTTP status 403. Forbidden indicates that the server refuses to fulfill the request.
NotFound68 Equivalent to HTTP status 404. NotFound indicates that the requested resource does not exist on the server.
MethodNotAllowed69 Equivalent to HTTP status 405. MethodNotAllowed indicates that the request method (POST or GET) is not allowed on the requested resource.
NotAcceptable70 Equivalent to HTTP status 406. NotAcceptable indicates that the client has indicated with Accept headers that it will not accept any of the available representations of the resource.
ProxyAuthenticationRequired71 Equivalent to HTTP status 407. ProxyAuthenticationRequired indicates that the requested proxy requires authentication. The Proxy-authenticate header contains the details of how to perform the authentication.
RequestTimeout72 Equivalent to HTTP status 408. RequestTimeout indicates that the client did not send a request within the time the server was expecting the request.
Conflict73 Equivalent to HTTP status 409. Conflict indicates that the request could not be carried out because of a conflict on the server.
Gone74 Equivalent to HTTP status 410. Gone indicates that the requested resource is no longer available.
LengthRequired75 Equivalent to HTTP status 411. LengthRequired indicates that the required Content-length header is missing.
PreconditionFailed76 Equivalent to HTTP status 412. PreconditionFailed indicates that a condition set for this request failed, and the request cannot be carried out. Conditions are set with conditional request headers like If-Match, If-None-Match, or If-Unmodified-Since.
RequestedEntityTooLarge77 Equivalent to HTTP status 413. RequestEntityTooLarge indicates that the request is too large for the server to process.
RequestedUrlTooLarge78 Equivalent to HTTP status 414. RequestUriTooLong indicates that the URI is too long.
UnsupportedMediaType79 Equivalent to HTTP status 415. UnsupportedMediaType indicates that the request is an unsupported type.
InternalServerError80 Equivalent to HTTP status 500. InternalServerError indicates that a generic error has occurred on the server. ObexWebRequest reports errors through ObexWebResponse.StatusCode, this status code is used by it to report failure to send the object.
NotImplemented81 Equivalent to HTTP status 501. NotImplemented indicates that the server does not support the requested function.
BadGateway82 Equivalent to HTTP status 502. BadGateway indicates that an intermediate proxy server received a bad response from another proxy or the origin server.
ServiceUnavailable83 Equivalent to HTTP status 503. ServiceUnavailable indicates that the server is temporarily unavailable, usually due to high load or maintenance.
GatewayTimeout84 Equivalent to HTTP status 504. GatewayTimeout indicates that an intermediate proxy server timed out while waiting for a response from another proxy or the origin server.
HttpVersionNotSupported85 Equivalent to HTTP status 505. HttpVersionNotSupported indicates that the requested HTTP version is not supported by the server.
DatabaseFull96 Database Full.
DatabaseLocked97 Database Locked.
Final128 Applied to another code to indicate this is the only response or final response in a series.

See Also