Repository navigation
Expand file tree
/
Copy pathresponses.yaml
More file actions
71 lines (66 loc) · 2.07 KB
/
Copy pathresponses.yaml
File metadata and controls
71 lines (66 loc) · 2.07 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
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
components:
responses:
BadRequest:
description: Validation failed
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Validasi gagal."
requestId: "req_abc123"
code: "validation.failed"
error:
- field: "email"
code: "required"
message: "Wajib diisi."
Unauthorized:
description: Authentication required
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Autentikasi diperlukan."
requestId: "req_abc123"
code: "unauthorized"
Forbidden:
description: Access denied
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Anda tidak memiliki akses."
requestId: "req_abc123"
code: "forbidden"
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Resource tidak ditemukan."
requestId: "req_abc123"
code: "not_found"
Conflict:
description: Data conflict
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Email sudah terdaftar."
requestId: "req_abc123"
code: "auth.user.exists"
InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: '../common/schemas.yaml#/components/schemas/ErrorResponse'
example:
message: "Terjadi kesalahan server internal."
requestId: "req_abc123"
code: "internal_error"