2fas-server/internal/common/http/error.go

13 lines
227 B
Go
Raw Permalink Normal View History

2022-12-31 10:22:38 +01:00
package http
import "fmt"
type ErrorResponse struct {
Status int
Message string `json:"message"`
}
func (error *ErrorResponse) Error() string {
return fmt.Sprintf("Status: %d Message: %s", error.Status, error.Message)
}