-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHttpError.cc
More file actions
45 lines (34 loc) · 1.06 KB
/
HttpError.cc
File metadata and controls
45 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Copyright (C) 2021 Frank Mertens.
*
* Distribution and use is allowed under the terms of the GNU General Public License version 3
* (see CoreComponents/LICENSE-gpl-3.0).
*
*/
#include <cc/HttpError>
namespace cc {
HttpBadRequest::HttpBadRequest():
HttpError{HttpStatus::BadRequest, "Bad Request"}
{}
HttpForbidden::HttpForbidden():
HttpError{HttpStatus::Forbidden, "Forbidden"}
{}
HttpNotFound::HttpNotFound():
HttpError{HttpStatus::NotFound, "Not Found"}
{}
HttpRequestTimeout::HttpRequestTimeout():
HttpError{HttpStatus::RequestTimeout, "Request Timeout"}
{}
HttpPayloadTooLarge::HttpPayloadTooLarge():
HttpError{HttpStatus::PayloadTooLarge, "Payload Too Large"}
{}
HttpInternalServerError::HttpInternalServerError():
HttpError{HttpStatus::InternalServerError, "Internal Server Error"}
{}
HttpUnsupportedVersion::HttpUnsupportedVersion():
HttpError{HttpStatus::UnsupportedVersion, "HTTP Version Not Supported"}
{}
HttpNotImplemented::HttpNotImplemented():
HttpError{HttpStatus::NotImplemented, "Not Implemented"}
{}
} // namespace cc