· 6 years ago · Jul 19, 2019, 12:14 PM
1private readonly ErrorAPI[] _codeOferrors =
2 {
3 new ErrorAPI(101, "Unauthorized"),
4 new ErrorAPI(102, "Invalid data."),
5 new ErrorAPI(103, "This email is occupied"),
6 new ErrorAPI(104, "The operation failed. Server has a problem."),
7 new ErrorAPI(105, "The email or password are incorrect."),
8 new ErrorAPI(106, "User is not found."),
9 new ErrorAPI(107, "Unsupported file format."),
10 new ErrorAPI(108, "You cannot add more than 5 photos of parking place."),
11 new ErrorAPI(109, "User has pending orders."),
12 new ErrorAPI(110, "Account is blocked."),
13 new ErrorAPI(111, "The maximum request size is 10 Mb"),
14 new ErrorAPI(112, "Invalid confirmation code"),
15 new ErrorAPI(113, "The user isn't lessor"),
16 new ErrorAPI(114, "Fields first name, last name and email are required for lessor"),
17 new ErrorAPI(115, "You can not leave a review"),
18 new ErrorAPI(116, "Parking has active orders"),
19 new ErrorAPI(117, "Parking unavailable for parking"),
20 new ErrorAPI(119, "Test error"),
21
22 new ErrorAPI(201, "Yandex.Kassa didn't accept payment."),
23 new ErrorAPI(202, "Yandex.Kassa: Invalid request. HTTP-code: 400"),
24 new ErrorAPI(203, "Yandex.Kassa: Invalid credentials. HTTP-code: 401"),
25 new ErrorAPI(204, "Yandex.kassa: Secret-key is true, but you have no rights. HTTP-code: 403"),
26 new ErrorAPI(205, "Yandex.kassa: Resource not found. HTTP-code: 404"),
27 new ErrorAPI(206, "Yandex.kassa: The limit of requests per unit of time has been exceeded. HTTP-code: 429"),
28 new ErrorAPI(207, "Yandex.Kassa: Internal server error. HTTP-code: 500"),
29
30 new ErrorAPI(301, "Escrow: invalid data"),
31 new ErrorAPI(302, "Escrow: no cards"),
32 new ErrorAPI(303, "Escrow: user already has a card with entered number"),
33 new ErrorAPI(304, "Escrow: internal server error"),
34 new ErrorAPI(305, "Escrow: card not found"),
35 new ErrorAPI(306, "Escrow: problems with passport"),
36 new ErrorAPI(307, "Escrow: this passport already exist in the system"),
37 new ErrorAPI(308, "Escrow: wrong user action"),
38 new ErrorAPI(309, "Escrow: min-sum of order 200 rub")
39 };