func (f finder) Response(method, path string, statusCode int) (spec.Response, error) {
	operation, err := f.Operation(method, path)
	if err != nil {
		return spec.Response{}, err
	}

	response, ok := operation.Responses.StatusCodeResponses[statusCode]
	if !ok {
		return spec.Response{}, ErrNotFound
	}

	return response, nil
}
// Response returns a Response object from the spec relative to a method, path and a
// specific response code
Response returns a Response object from the spec relative to a method, path and a
specific response code
// Response returns a Response object from the spec relative to a method path and a // specific response code
func (f finder) Response(method, path string, statusCode int) (spec.Response, error) {
	operation, err := f.Operation(method, path)
	if err != nil {
		return spec.Response{}, err
	}
	response, ok := operation.Responses.StatusCodeResponses[statusCode]
	if !ok {
		return spec.Response{}, ErrNotFound
	}
	return response, nil
}
func ( f finder ) Response ( method , path string , statusCode int ) ( spec . Response , error ) { operation , err := f . Operation ( method , path ) if err != nil { return spec . Response { } , err } response , ok := operation . Responses . StatusCodeResponses [ statusCode ] if ! ok { return spec . Response { } , ErrNotFound } return response , nil }
Response returns a Response object from the spec relative to a method, path and a
specific response code
Response returns a Response object from the spec relative to a method path and a specific response code