Added check on client side (api)
This commit is contained in:
14
models/Errors.ts
Normal file
14
models/Errors.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface ValidationError {
|
||||
path: (string | number)[]
|
||||
message: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export interface APIError {
|
||||
statusCode: number
|
||||
statusMessage: string
|
||||
message: string
|
||||
data: {
|
||||
errors: ValidationError[]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user