Dart API Referencedart:ioHttpStatus

HttpStatus abstract class

HTTP status codes.

abstract class HttpStatus {
 static const int CONTINUE = 100;
 static const int SWITCHING_PROTOCOLS = 101;
 static const int OK = 200;
 static const int CREATED = 201;
 static const int ACCEPTED = 202;
 static const int NON_AUTHORITATIVE_INFORMATION = 203;
 static const int NO_CONTENT = 204;
 static const int RESET_CONTENT = 205;
 static const int PARTIAL_CONTENT = 206;
 static const int MULTIPLE_CHOICES = 300;
 static const int MOVED_PERMANENTLY = 301;
 static const int FOUND = 302;
 static const int MOVED_TEMPORARILY = 302; // Common alias for FOUND.
 static const int SEE_OTHER = 303;
 static const int NOT_MODIFIED = 304;
 static const int USE_PROXY = 305;
 static const int TEMPORARY_REDIRECT = 307;
 static const int BAD_REQUEST = 400;
 static const int UNAUTHORIZED = 401;
 static const int PAYMENT_REQUIRED = 402;
 static const int FORBIDDEN = 403;
 static const int NOT_FOUND = 404;
 static const int METHOD_NOT_ALLOWED = 405;
 static const int NOT_ACCEPTABLE = 406;
 static const int PROXY_AUTHENTICATION_REQUIRED = 407;
 static const int REQUEST_TIMEOUT = 408;
 static const int CONFLICT = 409;
 static const int GONE = 410;
 static const int LENGTH_REQUIRED = 411;
 static const int PRECONDITION_FAILED = 412;
 static const int REQUEST_ENTITY_TOO_LARGE = 413;
 static const int REQUEST_URI_TOO_LONG = 414;
 static const int UNSUPPORTED_MEDIA_TYPE = 415;
 static const int REQUESTED_RANGE_NOT_SATISFIABLE = 416;
 static const int EXPECTATION_FAILED = 417;
 static const int INTERNAL_SERVER_ERROR = 500;
 static const int NOT_IMPLEMENTED = 501;
 static const int BAD_GATEWAY = 502;
 static const int SERVICE_UNAVAILABLE = 503;
 static const int GATEWAY_TIMEOUT = 504;
 static const int HTTP_VERSION_NOT_SUPPORTED = 505;
 // Client generated status code.
 static const int NETWORK_CONNECT_TIMEOUT_ERROR = 599;
}

Static Properties

const int ACCEPTED #

static const int ACCEPTED = 202

const int BAD_GATEWAY #

static const int BAD_GATEWAY = 502

const int BAD_REQUEST #

static const int BAD_REQUEST = 400

const int CONFLICT #

static const int CONFLICT = 409

const int CONTINUE #

static const int CONTINUE = 100

const int CREATED #

static const int CREATED = 201

const int EXPECTATION_FAILED #

static const int EXPECTATION_FAILED = 417

const int FORBIDDEN #

static const int FORBIDDEN = 403

const int FOUND #

static const int FOUND = 302

const int GATEWAY_TIMEOUT #

static const int GATEWAY_TIMEOUT = 504

const int GONE #

static const int GONE = 410

const int HTTP_VERSION_NOT_SUPPORTED #

static const int HTTP_VERSION_NOT_SUPPORTED = 505

const int INTERNAL_SERVER_ERROR #

static const int INTERNAL_SERVER_ERROR = 500

const int LENGTH_REQUIRED #

static const int LENGTH_REQUIRED = 411

const int METHOD_NOT_ALLOWED #

static const int METHOD_NOT_ALLOWED = 405

const int MOVED_PERMANENTLY #

static const int MOVED_PERMANENTLY = 301

const int MOVED_TEMPORARILY #

static const int MOVED_TEMPORARILY = 302

const int MULTIPLE_CHOICES #

static const int MULTIPLE_CHOICES = 300

const int NETWORK_CONNECT_TIMEOUT_ERROR #

static const int NETWORK_CONNECT_TIMEOUT_ERROR = 599

const int NO_CONTENT #

static const int NO_CONTENT = 204

const int NON_AUTHORITATIVE_INFORMATION #

static const int NON_AUTHORITATIVE_INFORMATION = 203

const int NOT_ACCEPTABLE #

static const int NOT_ACCEPTABLE = 406

const int NOT_FOUND #

static const int NOT_FOUND = 404

const int NOT_IMPLEMENTED #

static const int NOT_IMPLEMENTED = 501

const int NOT_MODIFIED #

static const int NOT_MODIFIED = 304

const int OK #

static const int OK = 200

const int PARTIAL_CONTENT #

static const int PARTIAL_CONTENT = 206

const int PAYMENT_REQUIRED #

static const int PAYMENT_REQUIRED = 402

const int PRECONDITION_FAILED #

static const int PRECONDITION_FAILED = 412

const int PROXY_AUTHENTICATION_REQUIRED #

static const int PROXY_AUTHENTICATION_REQUIRED = 407

const int REQUEST_ENTITY_TOO_LARGE #

static const int REQUEST_ENTITY_TOO_LARGE = 413

const int REQUEST_TIMEOUT #

static const int REQUEST_TIMEOUT = 408

const int REQUEST_URI_TOO_LONG #

static const int REQUEST_URI_TOO_LONG = 414

const int REQUESTED_RANGE_NOT_SATISFIABLE #

static const int REQUESTED_RANGE_NOT_SATISFIABLE = 416

const int RESET_CONTENT #

static const int RESET_CONTENT = 205

const int SEE_OTHER #

static const int SEE_OTHER = 303

const int SERVICE_UNAVAILABLE #

static const int SERVICE_UNAVAILABLE = 503

const int SWITCHING_PROTOCOLS #

static const int SWITCHING_PROTOCOLS = 101

const int TEMPORARY_REDIRECT #

static const int TEMPORARY_REDIRECT = 307

const int UNAUTHORIZED #

static const int UNAUTHORIZED = 401

const int UNSUPPORTED_MEDIA_TYPE #

static const int UNSUPPORTED_MEDIA_TYPE = 415

const int USE_PROXY #

static const int USE_PROXY = 305