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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/// Represents a categorized error kind with associated metadata.
///
/// The `ErrorKind` struct defines a specific type of error, providing
/// a unique identifier, category, numeric code, and a message ID.
/// This allows for structured and meaningful error classification.
///
/// # Example
/// ```rust
/// use cdumay_core::ErrorKind;
///
/// let kind = ErrorKind("NotFound", 404, "Not Found");
/// ```
.
pub &'static str,
/// A numeric error code.
pub u16,
/// A human-readable description of the error.
pub &'static str,
);
/// Returns the default `ErrorKind`, which represents an internal server error (HTTP 500).
///
/// This is useful as a fallback error kind when no specific error type is provided.
/// It corresponds to the common "Internal Server Error" used in HTTP responses.