HttpStatus.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include <BeHttp/Http.h>
11 
13 
14 enum class HttpStatus
15 {
16  // Used in error handling, it is not an actual http status code.
17  None = -1,
18 
19  // 1xx Informational
20  Continue = 100,
21  SwitchingProtocols = 101,
22  Processing = 102,
23 
24  // 2xx Success
25  OK = 200,
26  Created = 201,
27  Accepted = 202,
29  NoContent = 204,
30  ResetContent = 205,
31  PartialContent = 206,
32  MultiStatus = 207,
33  AlreadyReported = 208,
34  IMUsed = 226,
35 
36  // 3xx Redirection
37  MultipleChoices = 300,
38  MovedPermanently = 301,
39  Found = 302,
40  SeeOther = 303,
41  NotModified = 304,
42  UseProxy = 305,
43  TemporaryRedirect = 307,
44  ResumeIncomplete = 308,
45  PermanentRedirect = 308,
46 
47  // 4xx Client Error
48  BadRequest = 400,
49  Unauthorized = 401,
50  PaymentRequired = 402,
51  Forbidden = 403,
52  NotFound = 404,
53  MethodNotAllowed = 405,
54  NotAcceptable = 406,
56  ReqestTimeout = 408,
57  Conflict = 409,
58  Gone = 410,
59  LengthRequired = 411,
60  PreconditionFailed = 412,
62  RequestUriTooLong = 414,
65  ExpectationFailed = 417,
67  MethodFailure = 420,
68  DestinationLocked = 421,
69  UnprocessableEntity = 422,
70  Locked = 423,
71  FailedDependency = 424,
72  UpgradeRequired = 426,
73  TooManyRequests = 429,
74 
75  // 5xx Server Error
76  InternalServerError = 500,
77  NotImplemented = 501,
78  BadGateway = 502,
79  ServiceUnavailable = 503,
80  GatewayTimeout = 504,
83  InsufficientStorage = 507,
84  LoopDetected = 508,
85  NotExtended = 510
86 };
87 
#define BEGIN_BENTLEY_HTTP_NAMESPACE
Definition: Http.h:17
HttpStatus
Definition: HttpStatus.h:14
#define END_BENTLEY_HTTP_NAMESPACE
Definition: Http.h:18

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.