feat: consolidate provider plugin and chart
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package api
|
||||
|
||||
type HTTPError struct {
|
||||
StatusCode int
|
||||
Message string
|
||||
}
|
||||
|
||||
func (e *HTTPError) Error() string {
|
||||
if e == nil {
|
||||
return ""
|
||||
}
|
||||
return e.Message
|
||||
}
|
||||
|
||||
func NewHTTPError(status int, message string) error {
|
||||
return &HTTPError{StatusCode: status, Message: message}
|
||||
}
|
||||
Reference in New Issue
Block a user