package api // ErrorResponse represents an error responsetype ErrorResponse struct { Error ErrorDetail `json:"error"`} // ErrorDetail represents error detailstype ErrorDetail struct { Message string `json:"message"` Type string `json:"type"` Code string `json:"code,omitempty"`}
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"`
}