* use 403 for authorization error * update silences API * add ForbiddenError to rule API responses
23 lines
380 B
Go
23 lines
380 B
Go
package definitions
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
// swagger:model
|
|
type NotFound struct{}
|
|
|
|
// swagger:model
|
|
type Ack struct{}
|
|
|
|
// swagger:model
|
|
type ValidationError struct {
|
|
// example: error message
|
|
Msg string `json:"msg"`
|
|
}
|
|
|
|
// swagger:model
|
|
type ForbiddenError struct {
|
|
// The response message
|
|
// in: body
|
|
Body errutil.PublicError `json:"body"`
|
|
}
|