func (e APIError) Error() string {
	return fmt.Sprintf("APIError: status=%d, message=%s", e.Status, e.Message)
}
Error return the error message
package rest
import (
	"fmt"
)
type APIError struct {
	Status  int
	Message string
}