This commit is contained in:
13
internal/api/models.go
Normal file
13
internal/api/models.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package api
|
||||
|
||||
// ErrorResponse represents an error response
|
||||
type ErrorResponse struct {
|
||||
Error ErrorDetail `json:"error"`
|
||||
}
|
||||
|
||||
// ErrorDetail represents error details
|
||||
type ErrorDetail struct {
|
||||
Message string `json:"message"`
|
||||
Type string `json:"type"`
|
||||
Code string `json:"code,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user