func (r *Response) Error() interface{} {
	return r.Request.Error
}
Error method returns the error object if it has one
package resty
import (
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"strings"
	"time"
)
type Response struct {
	Request     *Request
	RawResponse *http.Response
	body       []byte
	size       int64
	receivedAt time.Time
}
func (r *Response) Body() []byte {
	if r.RawResponse == nil {
		return []byte{}
	}
	return r.body
}
func (r *Response) Status() string {
	if r.RawResponse == nil {
		return ""
	}
	return r.RawResponse.Status
}
func (r *Response) StatusCode() int {
	if r.RawResponse == nil {
		return 0
	}
	return r.RawResponse.StatusCode
}
func (r *Response) Result() interface{} {
	return r.Request.Result
}